[Haskell-cafe] File name encodings

Don Stewart dons at galois.com
Tue Dec 9 20:45:04 EST 2008


redcom:
> Hi,
> 
> how can I convert a file name with for example umlauts (ü, ä ... ) into  
> UTF8, or some other format that I can actually use it?
> 
> Günther
> 

Using the utf8-string package to encode the file name string.

    e.g.

        x <- readFile (encode "ኃይሌ ገብረሥላሴ")

    http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string


More information about the Haskell-Cafe mailing list