Unity读取中文文件报错NotSupportedException: Encoding 936 data could not be found.

Unity在发布时并没有包含这些字符集,需要手动加进去,将I18N.DLL和I18N.CJK.DLL从Unity安装目录(Editor\Data\Mono\lib\mono\2.0目录下)拷贝到项目目录的Assets目录下,然后重新编译出包,即可正常运行。

Encoding.GetEncoding("GB2312"));网络或串口通信 使用汉字字符串时 

资源链接:https://download.csdn.net/download/Rick__/87257591

猜你喜欢

转载自blog.csdn.net/Rick__/article/details/128238883