
31 May
2009
31 May
'09
8:35 p.m.
On Sun, May 31, 2009 at 8:24 PM, GüŸnther Schmidt
Hi all,
When a command line argument contains an umlaut that argument gets garbled.
I'm using ghc 6.10.2 on Win XP. Are there any known solutions for this problem?
Günther
GHC mangles UTF by default. You probably want to use one of the utf8 packages; eg. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string or http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-light (Neither of them seems to allow for accessing *arguments* rather than stdin/stdout, but you could probably do something with the encoding/decoding functions.) -- gwern