Ketil Malde wrote:
Sjoerd Visscher <sjo...@w3future.com> writes:

JSON is a UNICODE format, like any modern format is today. ByteStrings
are not going to work.

Well, neither is String as used in the code I responded to.  I'm not
intimately familiar with JSON, but I believe ByteStrings would work on
UTF-8 input, and both ByteString and String would fail on UTF-16 and
UTF-32.

ByteStrings can handle Unicode just fine, provided the right (de)serialization tools:

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-light
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string


--
Live well,
~wren
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to