Forum: JRuby Fwd: Fwd: utf-8 or unicode on Swing jlabel

C37cb1a6a19e23f067aae6ccb2d0de4b?d=identicon&s=25 Manuel Ramos Caro (Guest)
on 2012-07-15 04:50
(Received via mailing list)
Hi...

  I try to print a utf-8 string into a jlabel but it's not readeable...
but when i put to console all are ok... any idea of a solution ...
C37cb1a6a19e23f067aae6ccb2d0de4b?d=identicon&s=25 Manuel Ramos Caro (Guest)
on 2012-07-19 02:19
(Received via mailing list)
Hi.

After a hard study of the problem i think that the better solution is
convert from UTF-8 to Java Unicode escape sequence...

It's look like...

"\xC3\xB1" --conversion--> "\u00F1"

...and then past it to the Jlabel...any Jruby example for this out
there...???

The idea is to convert any utf-8 char to it Java Unicode Escape value
for multilingual support...

I'm migrating a Open Source GUI from Shoes to Jruby and Swing....

Thanks...


-------- Original Message --------
Subject:   Fwd: Fwd: utf-8 or unicode on Swing jlabel
Date:   Sun, 15 Jul 2012 04:49:57 +0200
From:   Manuel Ramos Caro <manuelramoscaro@gmail.com>
To:   user@jruby.codehaus.org




Hi...

  I try to print a utf-8 string into a jlabel but it's not readeable...
but when i put to console all are ok... any idea of a solution ...
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.