Linux下面提示Encoding 936 data could not be found.
来源:互联网 发布:宏观经济信息数据库 编辑:程序博客网 时间:2024/05/21 07:58
最近在使用CentOS 7 进行Mono测试的时候,发现好多异常情况,其中程序里面有用到GBK编码,然后运行的时候就报错了,错误码具体如下:
WARNING: The runtime version supported by this application is unavailable.Using default runtime: v4.0.30319Unhandled Exception:System.TypeInitializationException: The type initializer for 'DAHUASDK.DHClient' threw an exception. ---> System.NotSupportedException: Encoding 936 data could not be found. Make sure you have correct international codeset assembly installed and enabled. at System.Text.Encoding.GetEncoding (System.Int32 codepage) [0x0025f] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at DAHUASDK.DHClient..cctor () [0x0000c] in <3ba3d1a18b7e4126942cbe57085c9097>:0 --- End of inner exception stack trace --- at ITC.Form1..ctor () [0x0002f] in <3ba3d1a18b7e4126942cbe57085c9097>:0 at (wrapper remoting-invoke-with-check) ITC.Form1:.ctor () at ITC.Program.Main () [0x0000e] in <3ba3d1a18b7e4126942cbe57085c9097>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'DAHUASDK.DHClient' threw an exception. ---> System.NotSupportedException: Encoding 936 data could not be found. Make sure you have correct international codeset assembly installed and enabled. at System.Text.Encoding.GetEncoding (System.Int32 codepage) [0x0025f] in <dca3b561b8ad4f9fb10141d81b39ff45>:0 at DAHUASDK.DHClient..cctor () [0x0000c] in <3ba3d1a18b7e4126942cbe57085c9097>:0 --- End of inner exception stack trace --- at ITC.Form1..ctor () [0x0002f] in <3ba3d1a18b7e4126942cbe57085c9097>:0 at (wrapper remoting-invoke-with-check) ITC.Form1:.ctor () at ITC.Program.Main () [0x0000e] in <3ba3d1a18b7e4126942cbe57085c9097>:0
处理方法
1, 应该首先locale -a看有没有安装gbk
2, 没安装的话需要先安装gbk编码
3, 然后再安装mono-locale-extras
locale -a
yum install -y mono-locale-extras
0 0
- Linux下面提示Encoding 936 data could not be found.
- Linux MySQL server PID file could not be found!
- hadoop运行提示JAVA_HOME is not set and could not be found
- Excel打开错误提示 'c:\program files\...\..convert software.xla' could not be found
- Eclipes提示Some sites could not be found. See the error log for more detail
- 安卓错误提示:The following classes could not be found: - LinerLayout
- CentOS MySQL 提示:MySQL server PID file could not be found!
- 解决启动MySql提示:MySQL server PID file could not be found!
- The JRE could not be found 解决办法
- The JRE could not be found
- `DllImport' could not be found 错误
- `DllImport' could not be found 错误
- The specified module could not be found
- The specified module could not be found
- Page not found The requested page could not be found.
- The data could not be loaded
- String could not be serialized with encoding: 4
- Linux Eclipse CDT C++提示 Type 'string' could not be resolved或Type 'std' could not be resolved
- BouncyCastle生成证书(二)
- GitBook
- 如何通combobox中的select标签选择不同的值展示不同的echarts图标
- http状态码
- <转>MapReduce实现的Join
- Linux下面提示Encoding 936 data could not be found.
- KOOCAN发现了一部非常适合用葛优躺看的电影
- 【MyEclipse安装配置教程】二、用注册机代码破解MyEclipse
- Java实现冒泡排序算法
- Java synchronized详解
- HDU - 1244 Max Sum Plus Plus Plus
- bzoj 4300 绝世好题(dp)
- [leetcode]Count of Range Sum
- (三)shiro权限认证(授权)