perl-unicode

Re: [Encode] 1.66 Released

2002-05-01 06:59:55
Also, is it intentional that there is no \N{U+HHHH} syntax...?

Uhhh.  What I meant to ask that "was it intentional to use the
\N{U+...} syntax, since currently there is no such syntax".  I blame
low caffeine levels.

That was planned at some point but as of there is no such thing:

../perl -Ilib -Ilib -Mcharnames=:full -e '"\N{U+20ac}"'
Unknown charname 'U+20ac' at lib/unicore/Name.pl line 1

That being said, there is now such a thing.  Or will be as soon
as I check in the change.

Why not just use \x{HHHH...}?  If that's PERLQQ, that's what
I would expect?

If you wanted to used \N{}, there's charnames::viacode()

$ ./perl -Ilib -Mcharnames=:full -le 'print "\\N{", charnames::viacode(0x263a), 
"}"'
\N{WHITE SMILING FACE}
$ 

though for unnamed ones I think I have to do something (like use \N{U+HHHH}):

$ ./perl -Ilib -Mcharnames=:full -le 'print "\\N{", charnames::viacode(0x3040), 
"}"'
\N{}
$ 


-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen