Outputting non-ASCII characters

Claes Wikstrom klacke@REDACTED
Sat Jan 21 17:51:30 CET 2006


Ivan Dubrov wrote:
> Hello,
> 
> Is there any way to output non-ASCII characters (actually, I have a
> string in multibyte encoding, UTF8) to the stdout unescaped?
> 
> I need a way just to write the bytes into the stdout, the same as the
> write(stdout, "<UTF8 data>", size) does in case of C-code.

io:format("~s", [Str]).


/klacke


-- 
Claes Wikstrom                        -- Caps lock is nowhere and
http://www.hyber.org                  -- everything is under control
cellphone: +46 70 2097763



More information about the erlang-questions mailing list