Hi Don,

no luck there either, it's no longer a Word8 that the dialog returns but a
Maybe String.

I think I need to take this up with the wxHaskell guys.

Günther

Am 10.12.2008, 03:17 Uhr, schrieb Don Stewart <[EMAIL PROTECTED]>:

> Oh, perhaps you want to 'decode' the string that
> dirOpenDialog returns.
>
> redcom:
>> Hi Don,
>>
>> must be doing something wrong.
>>
>> The messed up string originates from calling  
>> Graphics.UI.WX.dirOpenDialog
>> and selecting a directory with Umlauts.
>>
>> The encode function doesn't seem to help here as it's too far at the end
>> of the chain.
>>
>> Günther
>>
>> Am 10.12.2008, 02:45 Uhr, schrieb Don Stewart <[EMAIL PROTECTED]>:
>>
>> >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
>>
>>

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to