[Haskell-cafe] How to use Unicode strings?

Alexey Khudyakov alexey.skladnoy at gmail.com
Sat Nov 22 07:56:29 EST 2008


>
> That really ought to work.  Is the file encoded in UTF-8 (rather than,
> eg. latin-1)?
>
This should pretend to work. Simple print functions garble unicode characters.
For example :

> putStrLn "Ну и где этот ваш хвалёный уникод?"

prints following output

C 8 345 MB>B 20H E20;Q=K9 C=8:>4?

Not pretty? Althrough Dmitri's variant seems to work fine.


More information about the Haskell-Cafe mailing list