diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-06 16:17:57 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-06 16:17:57 +0000 |
commit | 37361303e31c2073b3e9c4c5bce1a4cc42832f83 (patch) | |
tree | 7c5688353410302bafc7535c9bbc96c7dafdc88c /utf8.h | |
parent | f052740f1f57186936c99755d580d91ae19122de (diff) | |
download | perl-37361303e31c2073b3e9c4c5bce1a4cc42832f83.tar.gz |
Explain the "gaps" in the UTF-8 encoding.
p4raw-id: //depot/perl@15761
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -80,6 +80,10 @@ END_EXTERN_C Note the A0..BF in U+0800..U+0FFF, the 80..9F in U+D000...U+D7FF, the 90..BF in U+10000..U+3FFFF, and the 80...8F in U+100000..U+10FFFF. +The "gaps" are caused by legal UTF-8 avoiding non-shortest encodings: +it is technically possible to UTF-8-encode a single code point in different +ways, but that is explicitly forbidden, and the shortest possible encoding +should always be used (and that is what Perl does). */ |