From: Nuralanur@... Date: 2005-06-11T21:20:09+09:00 Subject: Re: problem matching accented chars on OS X -------------------------------1118492399 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Dear Alex, =20 you can test for equality in regexps for different encodings in Ruby =20 Equality---Two regexps are equal if their patterns are identical, they have=20= =20 the same character set code, and their casefold? values are the same =20 /abc/ =3D=3D /abc/x =C2=BB true /abc/ =3D=3D /abc/i =C2=BB false =20 /abc/u =3D=3D /abc/n =20 =C2=BB false The lang parameter enables multibyte support for the regexp: `n', `N' =3D=20 none, `e', `E' =3D EUC, `s', `S' =3D SJIS, `u', `U' =3D UTF-8.=20 =20 That's information from the "Pragmatic Programmer's guide." Unfortunately, I could not test it on a Mac ... There seems to be a special=20= =20 encoding for Mac, but maybe you can force it to use UTF-8 or something... =20 Hope that helps. =20 Best regards, =20 Axel=20 =20 -------------------------------1118492399--