Re: Comparing inputs with source strings
[email protected] (Daniel Dehennin) Tue, 10 May 2016 13:21:56 +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: > Hello, > > I tried to make my Perl5 code unicode compliant after reading a post on > stackoverflow[1]. > > As suggested in the post: > > =E2=80=9Calways run incoming stuff through NFD and outbound stuff fro= m NFC.=E2=80=9D The same from perlunicode[1]: =E2=80=9CThe usual advice is to convert your inputs to NFD before proce= ssing further=E2=80=9D I can't imagine declaring all my static string variable with: my unistring =3D NFD('C=E2=80=99est une cha=C3=AEne unicode'); Regards. Footnotes:=20 [1] http://perldoc.perl.org/perlunicode.html =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 iL4EAREKAGYFAlcxxFRfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDA5QUE4OTZBMEVDNkZEMDk5Mjc2ODdFODE2 QjJEMTMxQ0NBMDFBNEIACgkQFrLRMcygGku0bwD/RMQYkGPRSa2gio8R402XEeRP dAoIdnY23EKu1RWZkDsA/3G40CwN+meRtfSeSm+kLA0G+jGIVazcZCCU63uAHo5U =gJUa -----END PGP SIGNATURE----- --=-=-=--