ActiveRecord-JDBC 0.3 is breaking UTF-8 charset accross all rails applications. 
This is a regression since AR-JDBC 0.2.4. 0.2.3 was OK!
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-922
                 URL: http://jira.codehaus.org/browse/JRUBY-922
             Project: JRuby
          Issue Type: Bug
          Components: JRuby-extras
    Affects Versions: JRuby 1.0.0RC1
         Environment: Linux 2.6.20; Java 1.6; JRuby trunk.
            Reporter: Raphael Valyi
            Assignee: Thomas E Enebo
            Priority: Critical


update your gems to make sure you have ActiveRecord-JDBC 0.3 or 0.2.4 at least. 
Then scaffold any dummy Rails application you want. Now, make sure you have the 
proper HTML header in your application layout (app>view>layouts>foo.rhtml):
{noformat}
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
{noformat}
so now you can't say the header wasn't correct.

You don't need to use jcode since Rails 1.2 (using it won't fix the bug anyway)

Now, go into any of your RHTML view file and put some text with accentuated 
characters. For instance, in french just write: "le nouveau président français 
est vraiment un populiste affligeant". With that new afflicting ActiveRecod 
JDBC, you would then see pr?sident instead of président in the corresponding 
rendered HTML.

I've now idea why ActiveRecord-JDBC can break so much code, but it just does. 
Guys, I warned you about that regression some 10 days ago, seems you forgot 
about it.
I quickly have a look at the diff between 0.2.3 and 0.2.4 but there are quite a 
lot of change and I wasn't able to find where is the regression. Good luck with 
this one.

Raphaël Valyi.



-- 
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