Overview
| Artifact ID: | 82f589be52e6371adae1b63459f0e2b918258f05332252deb6407d8e71324f65 |
|---|---|
| Ticket: | 084ab982fea4c32aaab57251eeea0d7c829893a0
Use -strict to disable noncharacters |
| User & Date: | jan.nijtmans on 2022-12-02 12:42:39 |
Changes
- closedate changed to: "2459916.02962865"
- closer changed to: "jan.nijtmans"
- icomment:
> Additionally we the mode -strict 1 (which is a bit a confusing name) which raises error on surrogate and noncharacter. The "-strict 1" mode does more than only raising errors on noncharacters. The default utf-8 decoder tries to correct obvious error, in 'strict' mode it doesn't do that any more. e.g.: <pre> $ tclsh9.0 % encoding convertfrom utf-8 \xA1 ยก % encoding convertfrom -strict utf-8 \xA1 unexpected byte sequence starting at index 0: '\xA1' % </pre> '-strict 1' mode is a flag, whose behavior is implemented by every encoder/decoder separately.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"