[fxruby-users] Proposing

Lyle Johnson lyle at lylejohnson.name
Mon Jan 5 10:14:20 EST 2009

On Jan 4, 2009, at 5:08 AM, Helmut Hagemann wrote:

> Have a suggestion for the umlauts German ÄÖÜß €
> with the function
> reqiure 'iconv'
> def unicodetext (text)
>  if / mswin / = ~ PLATFORM
>    self.text = Iconv.inconv ( "UTF8", "CP1252", text)
>    else
>      #eg for linux
>      self.text = Iconv.inconv ( "UTF8", "ISO-8859-1", text)
>   end
> end
> is that possible directly incorporated to display in windows chose  
> the Font with Unicode in the Name e.g. Arial Unicode for the € sign


I don't understand exactly what you're asking (if you are indeed  
asking a question).

FOX/FXRuby stores its string data as UTF-8 encoded Unicode. There's a  
brief article here about one approach to displaying Unicode strings in  


As you've discovered, another approach is to use the "iconv" library  
to convert a string from some other encoding (e.g. CP1252 or  
ISO-8859-1) into the UTF-8 encoding needed by FOX. You also need to be  
sure that the widget that's displaying the text is using a Unicode  
font of some kind (like Microsoft's "Arial Unicode" font).

Hope this helps,


More information about the fxruby-users mailing list