[erlang-questions] How to show non-ascii charaters correctly in erlang shell?

2 views
Skip to first unread message

devdoer bird

unread,
Sep 11, 2008, 10:38:06 PM9/11/08
to erlang-q...@erlang.org
HI:
 
We have chinese words  input /output in erlang shell,and we want to show them  correctly in terminal ,but the erlang shell only show the integer number .
Eg. If we input "中文"  in the shell,it will appear as :
9> "\326\320\316\304".
"\326\320\316\304"
 
Is there a way to solve this? Can we telnet into erlang VM ,so we can interact with the erlang VM by telent terminal not the erlang shell and the telnet terminal  can show the non-ascii word correctly.
 
Can someone help me?

mog

unread,
Sep 12, 2008, 10:30:16 AM9/12/08
to erlang-q...@erlang.org
On Fri, Sep 12, 2008 at 10:38:06AM +0800, devdoer bird wrote:
> HI:
>
> We have chinese words input /output in erlang shell,and we want to show
> them correctly in terminal ,but the erlang shell only show the integer
> number .
> Eg. If we input "????" in the shell,it will appear as :

> 9> "\326\320\316\304".
> "\326\320\316\304"

Currently ssh, telnet, and shell drivers, escape anything but ascii sequences. I assumed this was for security / cleanliness issues. It is easy to go alter this, I have a patch on erlang-bugs list that did just that to allow for ^L to be typed and followed correctly in the shell.

Mog

signature.asc

devdoer bird

unread,
Sep 12, 2008, 11:28:20 AM9/12/08
to mog, erlang-q...@erlang.org
Thanks .Can you give me the link?

2008/9/12 mog <mog-...@rldn.net>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjKfPgACgkQeq+tARrxhnvaKQCggoAkZae9fjxcAEuHJUF6dlIo
ek8Ani+S0Jw5imG3/acJae75dFNHV6UO
=b0kC
-----END PGP SIGNATURE-----

_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-questions

devdoer bird

unread,
Sep 15, 2008, 1:09:03 PM9/15/08
to mog, erlang-q...@erlang.org
HI:
 
I can't find the patch.Would you please tell me where it is? Many thanks.

2008/9/12 devdoer bird <devd...@gmail.com>
Reply all
Reply to author
Forward
0 new messages