EngineHub / EngineHub/CommandHelper

Encoding problem in non-ascii characters

Đang mở
#1,165 9 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
128
Fork
70
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.