Re: How does Firefox detect encoding?

[email protected]
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>
Siegfried,

Sounds like a character corruption issue with emacs.  Try dumping out the binary versions of the files with a tool like od, then diff the dumps rather than the files themselves.

When you say you're note seeing "proper Chinese characters" what exactly do you mean?  You're seeing hex boxes or glyphs that look wrong?  Or something than that?

John Daggett

----- Original Message -----
From: "Siegfried Heintze" <[email protected]>
To: [email protected]
Sent: Wednesday, August 20, 2008 3:07:37 AM GMT +09:00 Japan
Subject: How does Firefox detect encoding?

My Chinese collegue data entered the all the characters on a Chinese 
keyboard into an Adobe Illustrator file. When we extracted the file as SVG, 
we were able to see the proper Chinese character displayed. The file was 
utf-8 and that is what was at the top of the file:

 <?xml version="1.0" encoding="utf-8"?>

I am using emacs and cygwin rcs on windows Server 2003. After using emacs to 
add a comment to the file and then check it into rcs and then check it out 
again, I could not see the proper Chinese characters in Firefox anymore.

So I retrieved the original file from Microsoft outlook again and that 
displayed the Chinese glyphs fine in Firefox.

I used emacs to remove the comments from the copy stored in rcs and it still 
would not display correctly! The cygwin "diff" utility said the files were 
identicial!

Using emacs to save it as utf-8 encoded did not help.

Apparently firefox was ignoring the utf-8 declaration in some cases. How 
does firefox deside if it is going to to display the Chinese characters in 
utf-8?

Thanks,
Siegfried




_______________________________________________
dev-tech-svg mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-svg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.