什么是codepage?
Codepage就是各國的文字編碼和Unicode之間的映射表。
?
Code page: An ordered set of characters in which a numeric index (code point value) is associated with each character. This term is generally used in the context of code pages defined by Microsoft Windows 3.1 or MS DOS and may also be called a "character set" or "charset."
http://msdn.microsoft.com/en-us/library/cc194760.aspx
?
比如簡體中文和Unicode的映射表就是CP936。以下是幾個常用的codepage,相應地修改上面的地址的數字即可。
codepage=932 日文; codepage=936 簡體中文GBK; codepage=949 韓文; codepage=950 繁體中文BIG5
codepage=437 美國/加拿大英語
codepage=866 俄文
codepage=65001 unicode UFT-8
最后一個65001,據個人理解,應該只是一個虛擬的映射表,實際只是一個算法而已。
?
Related resource:
The differences exist between the appearance of squares, question marks and garbage codes when localized strings can not be displayed properly?
(1)? The appearance of default glyphs such as boxes, vertical bars, or tildes
Reason: Indicates select font can not display characters
(2) Question Mark (???)
Reason: Indicates Unicode to code page conversion failure
(3)? Random or garbage characters
Reason: Indicates wrong code page selected總結
以上是生活随笔為你收集整理的什么是codepage?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 杀毒软件引起的WinCE编译出错问题
- 下一篇: Wince输入法换肤换语言机制