From: Alexander Lamb Date: 2006-07-25T18:12:15+09:00 Subject: Re: Escaping international characters --Apple-Mail-10--582102506 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Exactly what I needed, thanks! -- Alexander Lamb Service d'Informatique M=E9dicale H=F4pitaux Universitaires de Gen=E8ve Alexander.J.Lamb@sim.hcuge.ch +41 22 372 88 62 +41 79 420 79 73 On Jul 25, 2006, at 9:11 AM, Paul Battley wrote: > On 25/07/06, Alexander Lamb wrote: >> Hello, >> >> This seems rather simple but it doesn't work as expected: >> >> I have a string like "'=E9cole" I would like to get "école". > > Get this: > > http://htmlentities.rubyforge.org/ > > And do this: > > HTMLEntities.encode_entities("=E9cole", :basic, :named) > # =3D> "école" > > (Make sure that you are using UTF-8) > > Paul. --Apple-Mail-10--582102506--