How To Let Browser Know My Webpage is Written in Chinese?
A: If your web page containing Chinese characters is shown as the following image in any modern browser then READ ON to find a solution!
It'd be nice if everything in today's world was written in English, but it's not the case. Mandarin Chinese is the second most popular language in the world, and there have been countless frustrations for Chinese webmasters to put up HTML website written in Chinese. They put some Chinese characters in the web page but when they load it in a browser they see gibberish or garbage. This is because the browser is not told to display the web page in Chinese encoding. Let's see what you need to do to make browsers show your web pages in Mandarin automatically.
First of all to show Chinese characters you need to decide what encoding your webpage uses. You have two choices: UTF-8 or Big5. UTF-8 is universal encoding which you can use to write your web pages in any language. However most Chinese websites use Big5 to render Chinese characters because it is more common and more specific and browsers are more likely to interpret it correctly. So let's focus on using big5 as the encoding for your website to display Chinese words. Here are two things you need to do:
1. Include the correct encoding tag in your HTML: In your <head> element include the following HTML tag:
<meta http-equiv="content-type" content="text/html; charset=big5"/>
This gives the browser the cue that this web page is written in Big 5 which is an encoding method for Chinese.
2. Save your web pages in the appropriate encoding: If you are using Microsoft Notepad save your page as ANSI format, as the following photo suggests.
That's it! You should be able to render your web pages in any modern web browser in Chinese by default as the following:
Such browsers include IE6, IE7, IE8, Firefox 2, Firefox 3, Chrome, Safari. If you have questions let me know!
Sabtu, 29 Januari 2011
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar