From: "Mariusz Pękala" Date: 2007-06-01T23:21:49+09:00 Subject: Re: [Bug] String.titlecase failing on UTF-8 with accented chars --pvezYHf7grwyp3Bc Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-06-01 22:19:23 +0900 (Fri, Jun), Manoel Lemos wrote: > Anybody knows how to solve that? >=20 > Check this: >=20 > >> u.lastname > =3D> "Guimar\303\243es" > >> puts u.lastname > Guimar=E3es > =3D> nil > >> u.lastname.titlecase > =3D> "Guimar\303\243Es" > >> puts u.lastname.titlecase > Guimar=E3Es # ------------------> Check the E in capital, this is a bug > =3D> nil Titlecase is a Rails-ism (and the usual policy here is that Rails questions should go to Rails lists or #rubyonrails IRC channel), but you ca= n try: puts u.lastname.chars.titlecase Read: ri ActiveSupport::CoreExtensions::String::Unicode#chars --=20 No virus found in this outgoing message. Checked by 'grep -i virus $MESSAGE' Trust me. --pvezYHf7grwyp3Bc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7-ecc0.1.6 (GNU/Linux) iD8DBQFGYCtusnU0scoWZKARAgFBAKDc/p3bh+zCgrWsta5TrmJc0fqavgCeNd9U pmq2uElwwWzBeguFX/nmbdg= =MB6Q -----END PGP SIGNATURE----- --pvezYHf7grwyp3Bc--