History log of /PHP-8.1/ext/mbstring/tests/data/GB2312.txt (Results 1 – 1 of 1)
Revision Date Author Comments
# 1e5c3c13 19-Jun-2021 Alex Dowad

Fix conversion of HZ text (and add test suite)

- Treat truncated multi-byte characters as an error.
- Don't allow ASCII control characters to appear in the middle of a
multi-byte c

Fix conversion of HZ text (and add test suite)

- Treat truncated multi-byte characters as an error.
- Don't allow ASCII control characters to appear in the middle of a
multi-byte character.
- Handle ~ escapes according to the HZ standard (RFC 1843).
- Treat unrecognized ~ escapes as an error.
- Multi-byte characters (between ~{ ~} escapes) are GB2312, not CP936.
(CP936 is an extended version from MicroSoft, but the RFC does not
state that this extended version of GB should be used.)

show more ...