WINDOWS CODE字符集 编码代码

转载来自

https://referencesource.microsoft.com/#mscorlib/system/text/encoding.cs,3985861441acaee3

具体以下这些

// Special Case Code Pages
private const int CodePageDefault       = 0;
private const int CodePageNoOEM         = 1;        // OEM Code page not supported
private const int CodePageNoMac         = 2;        // MAC code page not supported
private const int CodePageNoThread      = 3;        // Thread code page not supported
private const int CodePageNoSymbol      = 42;       // Symbol code page not supported
private const int CodePageUnicode       = 1200;     // Unicode
private const int CodePageBigEndian     = 1201;     // Big Endian Unicode
private const int CodePageWindows1252   = 1252;     // Windows 1252 code page
// 20936 has same code page as 10008, so we'll special case it
private const int CodePageMacGB2312 = 10008;
private const int CodePageGB2312    = 20936;
private const int CodePageMacKorean = 10003;
private const int CodePageDLLKorean = 20949;
// ISO 2022 Code Pages
private const int ISO2022JP         = 50220;
private const int ISO2022JPESC      = 50221;
private const int ISO2022JPSISO     = 50222;
private const int ISOKorean         = 50225;
private const int ISOSimplifiedCN   = 50227;
private const int EUCJP             = 51932;
private const int ChineseHZ         = 52936;    // HZ has ~}~{~~ sequences
// 51936 is the same as 936
private const int DuplicateEUCCN    = 51936;
private const int EUCCN             = 936;
private const int EUCKR             = 51949;
// Latin 1 & ASCII Code Pages
internal const int CodePageASCII    = 20127;    // ASCII
internal const int ISO_8859_1       = 28591;    // Latin1
// ISCII
private const int ISCIIAssemese     = 57006;
private const int ISCIIBengali      = 57003;
private const int ISCIIDevanagari   = 57002;
private const int ISCIIGujarathi    = 57010;
private const int ISCIIKannada      = 57008;
private const int ISCIIMalayalam    = 57009;
private const int ISCIIOriya        = 57007;
private const int ISCIIPanjabi      = 57011;
private const int ISCIITamil        = 57004;
private const int ISCIITelugu       = 57005;
// GB18030
private const int GB18030           = 54936;
// Other
private const int ISO_8859_8I       = 38598;
private const int ISO_8859_8_Visual = 28598;
// 50229 is currently unsupported // "Chinese Traditional (ISO-2022)"
private const int ENC50229          = 50229;
// Special code pages
private const int CodePageUTF7      = 65000;
private const int CodePageUTF8      = 65001;
private const int CodePageUTF32     = 12000;
private const int CodePageUTF32BE   = 12001;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值