[Haskell-cafe] Umlauts in command line arguments
Gwern Branwen
gwern0 at gmail.com
Sun May 31 20:35:25 EDT 2009
On Sun, May 31, 2009 at 8:24 PM, GüŸnther Schmidt <gue.schmidt at web.de> wrote:
> 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
More information about the Haskell-Cafe
mailing list