[Haskell-cafe] getting crazy with character encoding

David Benbennick dbenbenn at gmail.com
Wed Sep 12 14:30:17 EDT 2007


On 9/12/07, Andrea Rossato <mailing_list at istitutocolli.org> wrote:
> If I run it in a console I get
> abA"A"A" (sort of) no matter what my LANG is - 8 single 8 -bit
> characters.

It's possible to set your Linux console to grok UTF8.  I don't
remember the details, but I'm sure you can Google for it.

By the way, does anyone know The Right Way to deal with UTF-8 in
Haskell?  I.e., take that 8 byte UTF-8 string and convert it to a 5
character Unicode string (so it can be manipulated)?


More information about the Haskell-Cafe mailing list