[Haskell-cafe] Has character changed in GHC 6.8?

Miguel Mitrofanov miguelimo38 at yandex.ru
Tue Jan 22 04:56:42 EST 2008


>   > chr . ord $ 'å'
>   '\229'
> What would I have to do to get an 'å' from '229'?

It seems you already have it; 'å' is the same as '\229'. But IO output is still 8-bit, so when you ask ghci to print 'å', you get '\229'. You can use utf-string library (from hackage).


More information about the Haskell-Cafe mailing list