The Official BLOG and Wiki for CustomMode.com
[ start | index | login ]
start > i18n

i18n

Created by dmitry. Last edited by dmitry, 2 years and 18 days ago. Viewed 202 times. #6
[diff] [history] [edit] [rdf]
labels
attachments
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/encoding

In 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
no comments | post comment
custommode.com | ©2000-2005
webmaster at custommode dot com