[erlang-questions] Why are the two strings outputed in diffrent format?

Christopher Vance <>
Tue Sep 30 06:22:33 CEST 2008


2008/9/30 devdoer bird <>:
> And a latin encoded file x.erl, the source is:
> -module(x).
> -compile(export_all).
> output2()->
>     "中文".

> I don't know why they  are outupted in diffrent format, one is
> string-format, the other is list-format. Why aren't they birth outputed in
> string-format or both in list-format?

You haven't told us the encoding actually used for x.erl. No "latin"
encoding I know of includes CJKV characters.

-- 
Christopher Vance


More information about the erlang-questions mailing list