-
Notifications
You must be signed in to change notification settings - Fork 133
fluffos #65
Comments
Make sure your terminal is utf8. |
My terminal is Utf8, and BASH LANG=zh_CN.UTF8 |
libtelnet does not deal with encodings, it just sends whatever it is received. So it is your telnet client doesn’t send proper utf8 strings, try use iterm2 and possibly try to install telnet from brew instead |
it is brew telnet, when using linux telnet , everything is fine. |
it seems that mud server fluffos doesn't do Locale setting. |
#25 have same problem |
using nc -v localhost 6666 to connect, it have no utf8 input problem. |
From that #25 example, the binary bytes of UTF-8 of "火锅" are: And the binary bytes sent by mac telnet are: It seems that all the 8th bits are cleared to zero. So it may be related to .inputrc settings. You may set these in ~/.inputrc to enable 8-bit input:
|
https://github.com/fluffos/fluffos using libtelnet,
when using OSX telnet client to connect the server,
it will strip UTF-8 character High byte to ansi char.
Using Linux/Windows telnet client, everything is fine.
The text was updated successfully, but these errors were encountered: