89
90
91
92
93
94
95
96
97
98
99
|
89
90
91
92
93
94
95
96
97
98
99
|
-
+
|
A different idea is to go with "surrogate pairs", where two Tcl_UniChar would represent the characters outside of the BMP.
Neither idea has been fully thought through yet AFAIK (aku).
Re "misleading naming of the internal encoding as utf" ... Our encoding is the same <a href="http://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8">Modified UTF-8</a> used by Java.
Note further that Tcl restricts UTF-8 to a maximum length of 3 bytes. This is in line with our restriction to the BMP. Going beyond the BMP will require us to support UTF-8 to up to 6 characters (AFAIK).
Note further that Tcl 8 restricts UTF-8 to a maximum length of 3 bytes. This is in line with our restriction to the BMP. Covering the entire set of Unicode codepoints requires us to support UTF-8 to up to 4 characters (<b>#define TCL_UTF_MAX 4</b>).
|