From: Dae San Hwang Date: 2006-05-25T06:02:55+09:00 Subject: Re: Ruby and unicode --Apple-Mail-1-546107580 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Yes, strings in UTF8 (or any character set for that matter) simply =20 pass through since they are just byte sequence. If you need methods that properly manipulate UTF8 strings, install =20 unicode gem and install unicode hacks from http://=20 julik.textdriven.com/svn/tools/rails_plugins/unicode_hacks/ Unicode hacks replaces String methods with UTF8 aware versions. You would also need to put following code snippet in config/=20 environment.rb: $KCODE =3D 'u' http://wiki.rubyonrails.com/rails/pages/HowToUseUnicodeStrings is a =20 good resource for unicode usage on rails. daesan On May 25, 2006, at 4:20 AM, P=E5l Bergstr=F6m wrote: > Just to be able to work smoothly from source to browser in Swedish > without problems, the beauty of unicode. As I can understand it works > like php, where certain methods like string lengths can give problems, > but besides that it just passes it through. Is this correct? Dae San Hwang daesan@gmail.com --Apple-Mail-1-546107580--