EngineHub / EngineHub/CommandHelper

Encoding problem in non-ascii characters

Open
#1,165 9 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
128
Forks
70
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.