X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Futf8.pm;h=5ddd4ba21a572f0718622e9d632fd9227bbe3821;hb=8a4f6ac230f3943b15bcb439d434cc52e5da1bc3;hp=35a478d10dcfde1a85c5253bf4e0e370e6d4603e;hpb=22244bdbbe5e55ece3797eb1c4fed22e93953c4c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/utf8.pm b/lib/utf8.pm index 35a478d..5ddd4ba 100644 --- a/lib/utf8.pm +++ b/lib/utf8.pm @@ -53,12 +53,12 @@ larger than 255. Presuming you use a Unicode editor to edit your program, these will typically occur directly within the literal strings as UTF-8 characters, but you can also specify a particular character with an extension of the C<\x> notation. UTF-8 characters are -specified by putting the hexidecimal code within curlies after the +specified by putting the hexadecimal code within curlies after the C<\x>. For instance, a Unicode smiley face is C<\x{263A}>. A character in the Latin-1 range (128..255) should be written C<\x{ab}> rather than C<\xab>, since the former will turn into a two-byte UTF-8 code, while the latter will continue to be interpreted as generating a -8-bit byte rather than a character. In fact, if -w is turned on, it will +8-bit byte rather than a character. In fact, if C<-w> is turned on, it will produce a warning that you might be generating invalid UTF-8. =item *