tqwuliao
V2EX  ›  问与答

vs2015c#下为什么获取不到 gb2312 的编码页

  •  
  •   tqwuliao · Oct 13, 2015 · 2869 views
    This topic created in 3888 days ago, the information mentioned may be changed or developed.

    直接"gb2312"也试过了 936 也试过了都不行

    No data is available for encoding 936. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.

    然而网上也查不到 Encoding.RegisterProvider 的有用信息

    原谅墙内懒癌只用度娘。

    1 replies    2015-10-13 20:58:07 +08:00
    abelyao
        1
    abelyao  
       Oct 13, 2015
    环境的问题?
    试试 Encoding.GetEncodings() 看一下当前所有编码呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2823 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:02 · PVG 18:02 · LAX 03:02 · JFK 06:02
    ♥ Do have faith in what you're doing.