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

devdoer bird devdoer2@REDACTED
Fri Sep 12 17:28:20 CEST 2008


Thanks .Can you give me the link?

2008/9/12 mog <mog-lists@REDACTED>

> 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
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkjKfPgACgkQeq+tARrxhnvaKQCggoAkZae9fjxcAEuHJUF6dlIo
> ek8Ani+S0Jw5imG3/acJae75dFNHV6UO
> =b0kC
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080912/3bbc9539/attachment.htm>


More information about the erlang-questions mailing list