EngineHub / EngineHub/CommandHelper
Encoding problem in non-ascii characters
- 主要语言
- Java
- 星标
- 128
- 派生
- 70
- PR 合并指标
- 30 天内没有已合并 PR
描述
CMDHELPER-3171 - Reported by bexco2010
If we(non-ascii users) write non-ascii character(which is hangul(korean) in my case), CommandHelper won't show correct letters on UTF-8 Encoded File. This means If code is transfered to another computer which uses diffrent encoding(EUC-KR to EUC-JP for example), code with non-ascii characters will shows broken letters when executed.
So, CommandHelper needs to set default encoding to UTF-8 for non-ascii users.
I attached photo which shows I tried to message "안녕" to player in UTF-8 Encoded MethodScript file.
plus, If try to send non-ascii message to console(tmsg() or console() function), It shows broken message.
please check console output with non-ascii characters, too.
Thanks.
贡献指南
调研方向
issue 中没有指定文件或测试。首先,在 UTF-8 的 MethodScript 文件中使用韩文复现该问题,包括通过 tmsg() 或 console() 发送的消息;当脚本执行时以及其代码在使用不同编码的计算机之间传输时,非 ASCII 字符都能保持正确,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- localization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 32/100