List Info

Thread: Re: FXRuby1.6.5 ?




Re: FXRuby1.6.5 ?
country flaguser name
United States
2007-02-06 20:43:35
On Feb 6, 2007, at 7:25 PM, Aleksey wrote:

> I don't asc how to convert to UTF-8. I have rb-file
saved in  
> 'ISO-8859-5'
> and it has strings for FXRuby (for menu or window
title) in russian.
> FXRuby renders this strings wrong.
> FXRuby renders right only if file with this strings in
UTF-8.
> Is there a way to say FXRuby about another 8-bit
encoding (not  
> Latin-1)
> to render it right?

Oh, no. The strings that you pass in to FXRuby definitely
need to be  
UTF-8 encoded Unicode. So you will need to convert your
strings which  
are in the Russian codec to UTF-8.

> And what FXTranslyator does (without FX...Codec-s)?

I don't know.
_______________________________________________
fxruby-users mailing list
fxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/fxruby-users

Re: FXRuby1.6.5 ?
country flaguser name
United States
2007-02-06 22:09:28
Hi:
    This might help you.
It's a message from me in Dec. 2001 to the ruby-talk forumn

http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb?key=unicode&cginame=namazu.rb&submit=Search&dbname=ruby-talk&max=50&whence=0

You should be able to convert unicode to utf8 using the code snippet there.  REXML incorporates that code into its parsers.

Ernie
Lyle Johnson wrote:
knology.net" type="cite">
On Feb 6, 2007, at 7:25 PM, Aleksey wrote:

  
I don't asc how to convert to UTF-8. I have rb-file saved in  
'ISO-8859-5'
and it has strings for FXRuby (for menu or window title) in russian.
FXRuby renders this strings wrong.
FXRuby renders right only if file with this strings in UTF-8.
Is there a way to say FXRuby about another 8-bit encoding (not  
Latin-1)
to render it right?
    

Oh, no. The strings that you pass in to FXRuby definitely need to be  
UTF-8 encoded Unicode. So you will need to convert your strings which  
are in the Russian codec to UTF-8.

  
And what FXTranslyator does (without FX...Codec-s)?
    

I don't know.
_______________________________________________
fxruby-users mailing list
rubyforge.org">fxruby-usersrubyforge.org
http://rubyforge.org/mailman/listinfo/fxruby-users
  

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )