Unity在PC端使用FlexReader插件读取excel失败

Unity测试版本2018.4.16,发布pc包,如下报错

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) [0x0023f] in <2fa7a6a452ca43df998f07fd1486c0df>:0 
  at ICSharpCode.SharpZipLib.Zip.ZipConstants.ConvertToString (System.Byte[] data, System.Int32 count) [0x00011] in <037da55cb16646df987bb6f3b17470d8>:0 
  at ICSharpCode.SharpZipLib.Zip.ZipConstants.ConvertToStringExt (System.Int32 flags, System.Byte[] data, System.Int32 count) [0x00026] in <037da55cb16646df987bb6f3b17470d8>:0 
  at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x002e7] in <037da55cb16646df987bb6f3b17470d8>:0 
  at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.IO.Stream stream) [0x00082] in <037da55cb16646df987bb6f3b17470d8>:0 
  at FlexFramework.Excel.WorkBook..ctor (System.Byte[] buffer) [0x0000c] in <d307cfb9d8ab42f6b05ee6a376bd5947>:0 
  at dhg_MMExampleManager+<IELoadExcel>d__20.MoveNext () [0x000b3] in <d307cfb9d8ab42f6b05ee6a376bd5947>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00027] in <2cc17dca390941eeb4d7b2ff1f84696a>:0 

之前用的是3.5,现在全部替换成4.0就可以了

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述希望对你们有帮助

猜你喜欢

转载自blog.csdn.net/D_kkkk/article/details/130366890