From: Jarkko Hietaniemi Date: Sat, 24 Nov 2001 16:16:01 +0000 (+0000) Subject: Mention the charnames::vianame(). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8a5e5dd54d5b32fc5faca5e0bd71d5a83947c450;p=p5sagit%2Fp5-mst-13.2.git Mention the charnames::vianame(). p4raw-id: //depot/perl@13238 --- diff --git a/pod/perluniintro.pod b/pod/perluniintro.pod index 55f8d56..39bc468 100644 --- a/pod/perluniintro.pod +++ b/pod/perluniintro.pod @@ -170,11 +170,12 @@ At run-time you can use C: Naturally, C will do the reverse: turn a character to a code point. -Note that C<\x..>, C<\x{..}> and C for arguments less than -0x100 (decimal 256) will generate an eight-bit character for backward -compatibility with older Perls. For arguments of 0x100 or more, -Unicode will always be produced. If you want UTF-8 always, use -C instead of C<\x..>, C<\x{..}>, or C. +Note that C<\x..> (no C<{}> and only two hexadecimal digits), C<\x{...}> +and C for arguments less than 0x100 (decimal 256) will +generate an eight-bit character for backward compatibility with older +Perls. For arguments of 0x100 or more, Unicode will always be +produced. If you want UTF-8 always, use C instead of +C<\x..>, C<\x{...}>, or C. You can also use the C pragma to invoke characters by name in doublequoted strings: @@ -187,6 +188,10 @@ characters: my $georgian_an = pack("U", 0x10a0); +Note that both C<\x{...}> and C<\N{...}> are compile-time string +constants: you cannot use variables in them. if you want similar +run-time functionality, use C and C. + =head2 Handling Unicode Handling Unicode is for the most part transparent: just use the