[Haskell-cafe] File name encodings
dons at galois.com
Tue Dec 9 21:11:34 EST 2008
> > 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.
> x <- readFile (encode "ኃይሌ ገብረሥላሴ")
In fact, utf8-string readFile already encodes the file name, so
should be enough.
More information about the Haskell-Cafe