perl-unicode

Re: Comparing inputs with source strings

2016-05-10 06:22:24
Daniel Dehennin <daniel(_dot_)dehennin(_at_)baby-gnu(_dot_)org> writes:

Hello,

I tried to make my Perl5 code unicode compliant after reading a post on
stackoverflow[1].

As suggested in the post:

    “always run incoming stuff through NFD and outbound stuff from NFC.”

The same from perlunicode[1]:

    “The usual advice is to convert your inputs to NFD before processing
    further”

I can't imagine declaring all my static string variable with:

    my unistring = NFD('C’est une chaîne unicode');

Regards.

Footnotes: 
[1]  http://perldoc.perl.org/perlunicode.html

-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF

Attachment: signature.asc
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>