Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: incorrect length of strings with diphthongs

by choroba (Cardinal)
on Aug 30, 2022 at 15:42 UTC ( [id://11146500]=note: print w/replies, xml ) Need Help??


in reply to Re^2: incorrect length of strings with diphthongs
in thread incorrect length of strings with diphthongs

That's true:
#!/usr/bin/perl use warnings; use strict; use Unicode::Normalize qw{ normalize }; my $char = "\N{LATIN SMALL LETTER U WITH DIAERESIS}"; binmode *STDOUT, ':encoding(UTF-8)'; print normalize($_, $char), ' ' for qw( D C );

Running the output through xxd:

00000000: 75cc 8820 c3bc 20 u.. ..

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found