Re: Comparing inputs with source strings
[email protected] (Daniel Dehennin) Tue, 10 May 2016 13:45:50 +0200
| Newsgroups | perl.unicode |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Daniel Dehennin <[email protected]> writes: [...] > I can't imagine declaring all my static string variable with: > > my unistring =3D NFD('C=E2=80=99est une cha=C3=AEne unicode'); Hey hey, it's more complicated than that, it depends on how the source was encoded, the following match none of the forms: 'C=E2=80=99est une cha=C3=AEne unicode avec E=CC=81' Since =E2=80=9CE=CC=81=E2=80=9D is =E2=80=9C\N{LATIN CAPITAL LETTER E}\N{CO= MBINING ACUTE ACCENT}=E2=80=9D So, it looks like no normalisation is done on sources. Regards. =2D-=20 Daniel Dehennin R=C3=A9cup=C3=A9rer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iL4EAREKAGYFAlcxye5fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDA5QUE4OTZBMEVDNkZEMDk5Mjc2ODdFODE2 QjJEMTMxQ0NBMDFBNEIACgkQFrLRMcygGkupDAD9HsrqYJ0yXwxg7Z/t63vgyun7 5amGQWXczVmkjUBINiYBAIlJVNv5DOr4GF4pllErqXIoxBARr6o0Tlbm03wn3Myy =hkW6 -----END PGP SIGNATURE----- --=-=-=--