zoukankan      html  css  js  c++  java
  • 什么是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
  • 相关阅读:
    node 父子进程传递对象
    js 按照字母进行分组
    native react 代码智能提示
    VScode 使用emmet
    c# webapi swagger
    c# 前台和后台线程
    Java——字节和字符的区别
    Java——类的访问修饰符
    Java——面向对象
    Java——内存中的数组
  • 原文地址:https://www.cnblogs.com/liang123/p/6325681.html
Copyright © 2011-2022 走看看