zoukankan      html  css  js  c++  java
  • 'GBK' is not a supported encoding name. For information on defining a custom encoding, see the docum

    .net core web工程 使用“GBK” 报如下错

    'GBK' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter 'name')

    解决:

    1、nuget引用 System.Text.Encoding.CodePages 包

    2、在使用前 先用“System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);” 注册

        System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
                byte[] server_ip = Encoding.GetEncoding("GBK").GetBytes(sendContentModel.ServerIp);
  • 相关阅读:
    hdu1069
    hdu1068
    假脱机
    什么是数据的备份与恢复
    DNS(Domain Name System) 域名系统
    Deepnet
    deepweb
    异地备份
    冷备份和热备份
    备份
  • 原文地址:https://www.cnblogs.com/xbding/p/15791280.html
Copyright © 2011-2022 走看看