Hi all, i'm not sure if this is the correct position to ask this
question.

We are embedding xulrunner 1.8.0.1(old version), we are facing this
problem:
When the HTML file contains image files with wildchar names, the
embedded xulrunner 1801 can't show it.
e.g: in the Windows XP SP2(Chinese) system, it can't show image files
with Hebew filename. "      .jpg".

After investigation, we found:
1) XULRunner 1.8.1.3 can show it because it is always using UTF-8 for
its URL encoding/decoding.
2) XULRunner 1.8.0.x is trying to use system default encoding to
encode it, but we can't find which one is used in this perticular
case. In our testing with " "      .jpg", we use DOM api to get "src"
attribute of that IMG tag, it is encoding to
"%810%F95%810%F94%810%FA2%810%FA4%810%F95%810%FA4.jpg". We don't know
why each char is encoded into 4bytes, and have no idea which code page
Mozilla is using when it found a Hebrew string in English system.
3) In another case, we use a Windows(Chinese) system to show an image
with Chinese file name, this time it can be shown.

Could someone give some background knowledge of this problem? Bugzilla
id?  It looks like XULRunner 1.8.1 stream has fixed it. Also, any way
to work around it in this old xulrunner 1.8.0.1 version? Like changing
Mozilla preference?

Thanks!

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to