From: Nuralanur@... Date: 2006-01-31T08:24:50+09:00 Subject: Re: Premature end of regular expression with non-ascii chara -------------------------------1138663458 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable When I read in a text with accents from a file under cygwin, these get converted to something like '\352'. You can then search for these using regexps: =20 a=3D"un texte extr=EAmement =E9nervant" p splitted_text=3Da.split(/(?=3D)/) b=3D/extr\352mement/ d=3Da.match(b) p d[0] =3D> extr\352mement When I write the result to a file, it appears correctly as "extr=EAmement". =20 f=3DFile.new("t.txt",'w') f.puts d[0] f.close Hope that helps, =20 Best regards, =20 Axel=20 =20 -------------------------------1138663458--