From: Daniel DeLorme Date: 2007-06-01T23:29:39+09:00 Subject: Re: [Bug] String.titlecase failing on UTF-8 with accented chars Manoel Lemos wrote: > Anybody knows how to solve that? > > Check this: > >>> u.lastname > => "Guimar\303\243es" >>> puts u.lastname > Guimar達es > => nil >>> u.lastname.titlecase > => "Guimar\303\243Es" >>> puts u.lastname.titlecase > Guimar達Es # ------------------> Check the E in capital, this is a bug > => nil If you're going to use utf-8 you need at least to set $KCODE='u' >> $KCODE='n' >> puts "Guimar\303\243es".titlecase Guimar達Es >> $KCODE='u' >> puts "Guimar\303\243es".titlecase Guimar達es -Daniel