[Haskell-cafe] getting crazy with character encoding

Andrea Rossato mailing_list at istitutocolli.org
Wed Sep 12 13:08:08 EDT 2007


On Wed, Sep 12, 2007 at 11:40:11AM -0400, Seth Gordon wrote:
>  The Unix utility "od" can be very helpful in figuring out problems like 
>  this.

Thanks for pointing me to "od", I didn't know it.

>  [*]At least on my computer, I get the same result *even if* I change "LANG" 
>  from "en_US.utf8" to "C".

As far as I understand it is the terminal emulator responsible for
translating the bytes to characters. 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.

Cheers,
Andrea



More information about the Haskell-Cafe mailing list