ruby_string.to_java_string has different encoding than new 
java.lang.String(ruby_string)
----------------------------------------------------------------------------------------

                 Key: JRUBY-3796
                 URL: http://jira.codehaus.org/browse/JRUBY-3796
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.3.1
            Reporter: Matthew Ueckerman
            Priority: Minor


>From a recent user group posting:

>> s = "Café"
=> "Café"
>>> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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

    http://xircles.codehaus.org/manage_email


Reply via email to