unicode-programming/normalization/perl5.md at master · patch/unicode-programming

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Latest commit

History

History

14 lines (11 loc) · 308 Bytes

File metadata and controls

14 lines (11 loc) · 308 Bytes

Unicode normalization in Perl 5

Unicode normalization is available in the core module Unicode::Normalize with Perl 5.8 and available on CPAN.

use Unicode::Normalize;

$nfd  = NFD($str);
$nfc  = NFC($str);
$nfkd = NFKD($str);
$nfkc = NFKC($str);