toNeko

toNeko

5.7k Downloads

消息乱码

yuhuan152 opened this issue · 11 comments

commented

在Minecraft 1.21.1 Fabric 0.17.2环境,安装并启用该模组的情况下,在聊天栏发送任意消息会乱码
已安装模组:
Fabric API 0.116.5+1.21.1
Fabric Language Kotlin 1.13.4+kotlin.2.2.0
GeckoLib 4.7.6
JustARod 0.1.10
toNekoMod 1.7.1 及以上
CustomSkinLoader 14.25
Lan server properties 1.13.2
乱码图例(原消息123456,玩家名BetterHat850277):

Image
commented

忘说系统配置了(其实我感觉跟系统配置没啥关系):
CPU:Intel Core i5 13420H(没搞超频)
内存:16GB
硬盘:477GB(容量足够)
显卡:Intel UHD Graphics

commented

禁止issue发起人自娱自乐^__^

commented

还有一点就是,这种情况在Fabric 0.16.14好点,没有0.17.2那么多

commented

应该是编码问题,等作者修一下(确信)

commented

总之我挺烦编码这个东西,我写C++要用gbk,写python还得换utf8

commented

@CSneko 作者呢?救一下啊!我还要和我朋友搞事情呢

commented

试下把common/src/main/java/org/cneko/toneko/common/util/FileUtil.java的第110 122 156行的filePath后面都加个",StandardCharsets.UTF_8"然后构建一下吧

commented

会反编译,但怎么编译?

commented

好了这下反编译都不行了

Image
commented

对不起哈,我是个**,上面两个comment别当它们存在就好

commented

嗯……按道理讲是改完源文件然后直接用根目录的gradlew.bat就可以,但是我自己因为网络问题总是不能完全成功