« Return to Thread: Changing non-standard ASCII character casing (UTF-8)

Re: Changing non-standard ASCII character casing (UTF-8)

by Charles Oliver Nutter-4 :: Rate this Message:

Reply to Author | View in Thread

On Fri, Jun 26, 2009 at 2:50 AM, Matthew Ueckerman<matthew@...> wrote:
>>> s.to_java_string.to_upper_case
> => "CAFé"
>>> java.lang.String.new(s).to_upper_case
> => "CAFÉ"

This looks like a bug in to_java_string. It's probably not assuming
UTF-8 when pulling in the string. Can you toss this into a bug?

It might also be fun to look at implementing what the "unicode" gem
does for JRuby, since really all the unicode facilities should "just
be there".

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Changing non-standard ASCII character casing (UTF-8)