”NotSupportedException: CodePage "G2312" not supported”
而在mono2.x模式下打包正常运行。
原因是IL2cpp模式打包I18N.DLL 和 I18N.CJK.DLL没有导入到xcode工程中,在xcode工程中搜索“I18N.DLL "、"I18N.CJK.DLL"没有结果。
解决方法:
将GB("2312") 改名为GB(936),两者是一样的。
在Assets根目录下添加link.xml文件,其内容如下:
<?xml version="1.0" encoding="utf-8"?>
<linker>
<assembly fullname="I18N"> <type fullname="I18N.Common.Manager" preserve="all"/>
</assembly>
<assembly fullname="I18N.CJK">
<type fullname="I18N.CJK.CP936" preserve="all"/>
</assembly>
</linker>
打包后该编码能正常使用。

1089

被折叠的 条评论
为什么被折叠?



