来自:http://www.dreamdu.com/xhtml/charset/
使用UTF8编码(国际化编码)
<
meta
http-equiv
=
"
content-type
"
content
=
"
text/html; charset=UTF-8
"
/>
使用中文gb2312编码
<
meta
http-equiv
=
"
content-type
"
content
=
"
text/html; charset=gb2312
"
/>
下面这些编码方式,比如:中文 GBK ,繁体中文 Big5 ,日文 EUC-JP ,韩文 EUC-KR 等,每种语言的编码方式是不同的,所以需要使用charset为网页提供了一种编码方式,否则页面很可能出现乱码.
UTF-8 是没有国家的编码,也就是独立于任何一种语言,任何语言都可以使用(梦之都就使用了此编码).引用网址:http://www.dreamdu.com/xhtml/charset/
下面是常用的编码示例
- Arabic (ISO-8859-6)
- Catalan (ISO-8859-1)
- Chinese (Simplified) (GB2312)
- Chinese (Traditional) (BIG5)
- Danish (ISO-8859-1)
- Dutch (ISO-8859-1)
- English (ISO-8859-1)
- Esperanto (ISO-8859-3)
- Finnish (ISO-8859-1)
- French (ISO-8859-1)
- Georgian (UTF-8)
- German (ISO-8859-1)
- Hebrew (ISO-8859-8-I)
- Hungarian (ISO-8859-2)
- Irish Gaelic (ISO-8859-1)
- Italian (ISO-8859-1)
- Japanese (SHIFT_JIS)
- Korean (EUC-KR)
- Norwegian (Bokm?l) (ISO-8859-1)
- Norwegian (Nynorsk) (ISO-8859-1)
- Occitan (ISO-8859-1)
- Portuguese (Brazil) (ISO-8859-1)
- Portuguese (Portugal) (ISO-8859-1)
- Romanian (ISO-8859-2)
- Russian (ISO-8859-5)
- Slovenian (ISO-8859-2)
- Spanish (ISO-8859-1)
- Swedish (ISO-8859-1)
- Yiddish (UTF-8)