[erlang-questions] utf-8 PB
Attila Rajmund Nohl
attila.r.nohl@REDACTED
Wed Jun 16 18:40:26 CEST 2010
As far as I know, an Erlang source file must use the latin-1 character
set. So if you want UTF-8 strings, read them from a file. That's
useful for a possible internationalization anyway.
2010/6/16, Angel Alvarez <clist@REDACTED>:
> The shell has no trouble displaying uft8 chars
>
> ive made some string in spanish compiled propely if you save the source code
> as latin1 but no luck if you use utf8 editors
>
> Also you cat do io:get_line data and get that data displayed properly but
> when you have compiled strings in the code it in utf8 mode it doesnt work...
>
> If you manage to get some feedbak form the list, drop me a line :-(
>
>
> Regards, Angel
>
> El Miércoles, 16 de Junio de 2010 16:53:31 Jean-Yves F. Barbier escribió:
>> Debian sid
>> erlang-base-hipe 1:13.b.4-dfsg-6
>> ===========================
>>
>> Hi list,
>>
>> I'm brand new to Erlang, and fighting with UTF-8 display.
>>
>> On command line, an io:format("~ts~n", ["âèéàçöô"]). works perfectly,
>> however into a module it don't work at all:
>> start() ->
>> Label = "âèéàçöô",
>> io:format("~ts~n", [Label]).
>>
>> returns: âèéà çöô
>>
>> iconv the erl file from utf8 to iso8859-1 didn't changed anything.
>>
>> I read a lot, and saw there's unicode:xxx orders, but examples aren't
>> talking to me and I don't understand very much how it works.
>>
>> I also need to display utf8 right into wxerlang (and don't see how to
>> do that either)
>>
>> JY
>
>
>
> --
> No imprima este correo si no es necesario. El medio ambiente está en
> nuestras manos.
> ->>----------------------------------------------------------
>
> Angel J. Alvarez Miguel, Servicios Informáticos
> Edificio Torre de Control, Campus Externo UAH
> Alcalá de Henares 28806, Madrid ** ESPAÑA **
>
> RedIRIS Jabber: angel.uah.es@REDACTED
> --------------------------------------------[www.uah.es]-<<--
> Warning: Microsoft_bribery.ISO contains OOXML code.
> --
> Este correo no tiene dibujos. Las formas extrañas en la pantalla son letras.
> __________________________________________
>
> Clist UAH a.k.a Angel
> __________________________________________
> Vivimos en un sociedad exquisitamente dependiente de la ciencia y la
> tecnología, cuando muy poco gente conoce algo de la ciencia ó de la
> tecnología.
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>
More information about the erlang-questions
mailing list