
18 Jan
2009
18 Jan
'09
1:18 a.m.
Ketil Malde wrote:
Sjoerd Visscher
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