Marshalling Haskell String <-> UTF-8

George Russell ger at
Wed Sep 1 06:42:15 EDT 2004

I have implemented code to do this which I think is better than
John Meacham's, because it (a) handles all UTF8 sequences
(up to 6 bytes); (b) checks for errors as UTF8 decoders are
supposed to do; (c) lets you determine if there is an error
without having to seq the entire list.  Here is a link:

More information about the Glasgow-haskell-users mailing list