[Haskell-beginners] Simple UTF-8 output
Erik de Castro Lopo
mle+hs at mega-nerd.com
Fri May 27 09:38:07 CEST 2011
Elvio Toccalino wrote:
> I usually pull such values as ByteStrings. The utf8-strings package
> provides printing functions for such data.
> Also, if you'd like to work on it as Text, there's the
> Data.Text.Encodings module, to decodeUTF8 or decodeASCII ByteString's
> into Text.
I would recommend Data.Text because that is designed for Text
encodings while ByteString is designed for handling arrays
of bytes (eg things like data read from an network socket).
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Beginners
mailing list