jdbc:mysql://host/db?useUnicode=true&characterEncoding=UTF-8
More on mysql utf8 handling can be found here:
http://confluence.atlassian.com/display/DOC/Configuring+Database+Character+Encoding
http://del.icio.us/cagan327/encodingIn order to convert utf-8 to browser renderable file use a utility:
native2ascii -encoding utf8 ApplicationResources_ru.properties
To convert it back to editable form use a
-reverse option.
There is another useful utility:
iconv -f KOI8-R -t UTF-8 < oldfile > newfile
links
/etc/my.cnf
In order for the mysql to be UTF enabled, turn it on in the /etc/my.cnf file:
[mysql]
default-character-set=utf8
#default-collation=utf8_general_ci[mysqld]
default-character-set=utf8
set-variable=max_connections=250
Ruby On Rails
http://www.globalize-rails.org