Cannot open MHT file in IE7

Discussion in 'Internet Explorer' started by Saurabh Garg, May 27, 2008.

  1. Saurabh Garg

    Saurabh Garg Guest

    Hi,

    I cannot open mht file in IE7 in Vista SP1 and Windows XP SP3 when there is
    # in the file path. Is this a known problem? I was looking to report this as
    a bug but couldnt find the bug report site for internet explorer.

    Thanks,
    Saurabh
     
    Saurabh Garg, May 27, 2008
    #1
    1. Advertisements


  2. Yes. It has to be escaped and represented by its hex value. %23


    Simplest thing to do would be to see if it is still an issue in IE8
    and then report it on the IE Beta. But I don't think that this particular
    incident is a bug.
     
    Robert Aldwinckle, May 27, 2008
    #2
    1. Advertisements

  3. Saurabh Garg

    Saurabh Garg Guest

    Are you saying that I should rename my files so that there is no # in the
    file name?

    Just to be clear Internet explorer can open C:\Foo#.html but it cannot open
    C:\Foo#.mht.

    Saurabh
     
    Saurabh Garg, May 28, 2008
    #3

  4. No but that would certainly eliminate the problem too. I was only implying
    that if you are trying to open them with a file:/// prefix using IE you may
    need to encode special characters to satisfy Internet standards.


    Then if that is being converted to file:///C:/Foo_.mht (e.g. invalid URL character
    being replaced by underscore) you should try retyping the URL in the Address bar as
    file:///C:/Foo%23.mht (BTW is that escaping being done automatically then to open
    it when the protocol prefix is HTTP?)


    HTH

    Robert
    ---
     
    Robert Aldwinckle, May 28, 2008
    #4
  5. Saurabh Garg

    Saurabh Garg Guest

    Yeah of course that would solve the problem but I don't want to do that. I
    have a folder for C# projects and I want to save couple of mht files in that
    folder but its useless since I cannot open those files. I double click the
    file in explorer and it is automatically opened in Internet Explorer. Is is
    using mhtml:file:// instead of just file://.
    Actually thats the intereting part # is not automatically converted to %23 -
    it remains as it is. Even replacing # by %23 manually doesn't help. Can you
    please try this on your computer? I tried on Vista SP1 and XP SP3 and it
    doesnt work on either.

    Thanks a lot for help.

    Saurabh
     
    Saurabh Garg, May 28, 2008
    #5

  6. I thought this sounded familiar...

    http://groups.google.com/group/microsoft.public.internetexplorer.general/msg/32830bfa74be3616

    As I speculated earlier:

    <quote>
    Probably it's a generalization of the original error with spaces that they didn't fix
    because instead of fixing the problem (special characters being used in a file:/// URL)
    they fixed the symptom (spaces being used in a file:/// URL)... ; ]
    </quote>


    FYI

    Robert
    ---
     
    Robert Aldwinckle, Jun 3, 2008
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.