perl-unicode

Re: Character (or byte?) escapes under utf8 pragma

2010-04-04 15:28:56
Hi Michael,

I just noticed I never replied to this…

* Michael Ludwig <michael(_dot_)ludwig(_at_)xing(_dot_)com> [2010-03-08 15:50]:
Am 07.03.2010 um 07:39 schrieb Aristotle Pagaltzis:
Use the \U escape to indicate that you always mean a Unicode
code point. Due to other quirks in how \U is implemented, it
ends up not triggering the bug that \x would.

How would I use that? I only know about the U specifier for
pack:

my $smiley = pack 'U', 0x263a;

Sorry – I meant \N. Eg in that case,

    my $smiley = "\N{U+263A}";

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Character (or byte?) escapes under utf8 pragma, Aristotle Pagaltzis <=