[Haskell-cafe] Umlauts in command line arguments

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Jun 5 04:03:57 EDT 2009

Hello Eric,

Friday, June 5, 2009, 12:17:42 AM, you wrote:

>> I'm using ghc 6.10.2 on Win XP. Are there any known solutions for this
>> problem?

> Your question has inspired me to add a System.Environment.UTF8 module
> to utf8-string 0.3.5

> This module behaves like the System.IO.UTF8 wrapper.

it is useless on Windows, since it passes cmdline in ANSI code page
rather than UTF-8. proper windows solution is using *W version of
WIN API function to get UTF-16 string and then decode it

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list