Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6141271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:13:42+00:00 2026-05-23T18:13:42+00:00

I have a test page that displays two images. One called hello.bmp and another

  • 0

I have a test page that displays two images. One called hello.bmp and another called 徘吐驴欸觰.bmp (this is a random collection of Chinese characters – apologies if it means something weird). For the latter image, I use an encoded format in the page’s HTML.

The html is pretty straight forward:

<img src="%E5%BE%98%E5%90%90%E9%A9%B4%E6%AC%B8%E8%A7%B0.bmp" />
<img src="hello.bmp" />

In Internet explore 7, the encoded filepath does not display (Red x). All other browsers display it.

Does anyone know what would cause this? Can it be avoided?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:13:43+00:00Added an answer on May 23, 2026 at 6:13 pm

    Character encoding of file:/// URLs works differently across browsers on Windows.

    Windows filenames are natively Unicode-based, so when you use a URL, which is byte-based, it has to convert that sequence of bytes to Unicode characters using an encoding. What encoding? There is no standard to say, but there are two obvious possibilities:

    • UTF-8, since it covers everything and is a popular default encoding, also used by the IRI standard for putting Unicode in URIs;

    • the (misleadingly-named) “ANSI” code page, which is an arbitrary default that varies from system to system. On a Western European Windows install it will be code page 1252 (which is similar to ISO-8859-1); on a Chinese Windows install it will be code page 936 (similar to GB2312).

    The ANSI code page is a pain because you never know what it’s going to be, it’s never UTF-8, and if your filename contains characters that don’t exist in ANSI—which will certainly be the case if you have the filename 徘吐驴欸觰.bmp on a Western Windows install—you can’t access the file at all.

    So which do the browsers use?

    • IE: ANSI code page
    • Safari/Opera: UTF-8
    • Chrome/Firefox: UTF-8, unless the bytes are not a valid UTF-8 sequence, in which case the ANSI code page is used instead.

    So in conclusion, you can’t reliably use non-ASCII characters in file:/// URLs at all.

    This is in contrast to HTTP. The IIS web server, for example, has the same UTF-8-with-fallback-to-ANSI behaviour as Chrome and Firefox. Non-ASCII characters via IRI and a suitably-configured server are fine, but not the local filesystem.

    (On non-Windows platforms filenames are natively bytes, usually representing UTF-8-encoded characters, but still bytes. Oo there is no ambiguity between the filesystem names and the byte-based URL %-sequences.)

    die ANSI code page die. Why won’t Microsoft kill you? You have long outstayed your welcome. You ruin everything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iframe on a page called Test.aspx that points to a url
http://blog.helpcurenow.org/test/mockups/mar2010/lp.html In the above landing page, I have an offers box that has four
Note: I'm using Google Chrome Currently I have this test page http://www.evecakes.com/doodles/canvas_size_issue.htm It should
I am setting up a simple test page in Python. I only have two
I have to write integration test case for my one feature listing page and
Say I have this code in my page: <script language=javascript> $(document).ready(function() { $(.test).click(function() {
Basically I have an IFRAME that displays a given page. I want to position
I have a simple HTML page (ratings.html) that I'm trying to test using HtmlUnit.
I have a page that look like this. <html> <head> <title>Welcome</title> </head> <body bgcolor=white
I have a Django project which has two apps (one created as debug test).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.