L-Leite / cso2-launcher

A custom launcher for CSO2
MIT License
113 stars 56 forks source link

non-ascii character support? #63

Closed dounai2333 closed 4 years ago

dounai2333 commented 5 years ago

at present, non-ascii characters are not supported by channel name, clan name, personality signature and player name. if they are use forcibly, they will be convert into GBK format and display "garbled code" (I don't know how it would behave in other system languages, but in China it was converted to GBK) the message received by the server is utf-8 and send back with utf-8 too, however, the client seems to treat it as GBK without any explanation, resulting in "garbled code phenomenon"

all utf-8 characters will be affected (tested Korean, Russian, Japanese, Chinese), currently only ASCII characters can be transmit normally without affected edit: forget one thing, that even though the server defines Unicode and transmits it, even the client can automatically unpack it, it will still be display as GBK

dounai2333 commented 4 years ago

solved by changing server encoding mode.