Manny
Manny

Reputation: 6287

Some Chinese characters are not shown properly IE, FF, Chrome

I tried it in several workstations, sometimes the Characters are displayed properly, sometimes only the last part is displayed. Any idea what is causing this? Any solution?

Here is the HTML: http://dl.dropbox.com/u/20727629/chi/chi.html

Here is the image of browser with issue: http://dl.dropbox.com/u/20727629/chi/chi_issue.gif

Here is the image of browser showing Chinese characters correctly: http://dl.dropbox.com/u/20727629/chi/chi.gif

I've tried several things:

  1. In Windows, setting Regional Settings Format and Language to Chinese (Hong Kong Sar) sometimes fix it for Firefox (it worked in Windows Server 2003, and Windows 7), but IE and Chrome still displays squares or blank for some Chinese chars. Also it didn't work in Windows XP machine I tried.

  2. For XP, In Regional Settings installed files East Asian languages but it didn't fix the problem.

  3. In IE, I tried Tools -> Internet Options, setting Font of Chinese to MingLiu or other Chinese fonts. Didn't work.

Tested in the ff environment (English OS):

Upvotes: 1

Views: 5616

Answers (3)

Phil
Phil

Reputation: 1308

The problematic characters seems to be characters in the Big5-HKSCS charset. Convert them to Unicode.

Upvotes: 0

Kamil
Kamil

Reputation: 13931

Please try diffrent encoding / character set. You are using UTF-8.

Most of chinese websites use gb2312 (simplified) or Big5 (traditional).

Do you know how to convert UTF-8 text file to diffrent encoding?

Upvotes: 1

Boldewyn
Boldewyn

Reputation: 82734

It seems to me, that many of these characters are in the Unicode Private Use Area. If and how those characters are displayed is highly platform- and font-dependend.

My FF on Linux shows the same rendering as the issue graphic. It means, that there is no character in the list of tried fonts to render the codepoint, and a fallback is used.

The characters, as far as I can oversee, are also present as other codepoints. Use these instead of the Private Use ones, and your chances to get the text rendered will much improve.

For example, you use U+F303 for the first character, the correct one would be U+31C0.

Upvotes: 3

Related Questions