且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

编码.默认在Unity Player中不起作用

更新时间:2023-11-17 22:08:16

如果该代码中存在编码问题,请查看

If it is an encoding issue within that code, look at Encoding.Default.EncodingName in the editor vs. during runtime. This will tell you if the default encodings are different.

作为一种可能的解决方案,请不要使用默认值.例如,使用 .如果您发现Unity编辑器使用的是哪种编码,则可以使用.

As a potential solution, don't use the default. For example, use Encoding.UTF8. If you find out which encoding the Unity editor is using, you can use that.