Hello all,
I want to know how to display foreign characters such as Chinese, Japanese or Arabic in HTML page.
Thank you very much
| SitePoint Sponsor |
Hello all,
I want to know how to display foreign characters such as Chinese, Japanese or Arabic in HTML page.
Thank you very much





That depends on your server encoding really. If it's UTF8 you should be fairly ok. I haven't really seen an issue, and sites like mixi inline it:
HTML Code:<title>ソーシャル・ネットワーキングサイト [mixi(ミクシィ)]</title>


It can depends on the fonts installed on the users system but the encoding is a major factor.
};-) http://www.xhtmlcoder.com/
Thinking Web: Voices of the Community
> March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?


You can either use an encoding that allows you to have the literal characters in your document (like UTF-8), or you can use numeric character references (&#xxxxx;).
You also need to specify one or more font families that include glyphs for those characters (using CSS).
Your visitors must have at least one of those fonts installed in order to actually see anything useful.
Birnam wood is come to Dunsinane
How do I find out my server encoding?Originally Posted by chris_fuel
Thanks


<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />


That's not the server encoding; that's something that is used if the server doesn't send an encoding.
Browsers like Opera and Firefox can show you which encoding the server sends (although Firefox may just display the encoding it has chosen by default, but I think there's some extension or other that shows the real encoding).
You can usually control which encoding is sent by the server, either by changing its configuration or by using a server-side programming language to send the headers.
Birnam wood is come to Dunsinane
Bookmarks