现象:
中文乱码
原因:
Unity打包出来的.exe文件,语言一栏是英文,VS控制台出来不一样
解决方案:
新建.bat文件 ,并使用命令chcp 65001,运行时启动.bat,而不是.exe,
改不了exe属性,虽然有点奇怪,不过代码向来不是能跑就行吗。
原文链接:
How does the Dedicated Server’s console app print utf8 string? like Chinese word.https://discussions.unity.com/t/how-does-the-dedicated-servers-console-app-print-utf8-string-like-chinese-word/918204/6
一键三联
点赞·留言·收藏
如果可以帮到你,好用的话,记得一键三连。
毕竟博主写文章是靠爱发电,所以爱会消失对不对。