Fix hz encoding and decoding (bug#23814)
commit7faabf03d885204295701e3fc5d7e75a71c3ec82
authorK. Handa <handa@gnu.org>
Wed, 17 Aug 2016 14:37:17 +0000 (17 23:37 +0900)
committerK. Handa <handa@gnu.org>
Wed, 17 Aug 2016 14:37:17 +0000 (17 23:37 +0900)
treecf8846bf96d550ec186953e34d2a7da92b2abee3
parent8d4039bcd69f0134fe3723b2bb3c921952e298c5
Fix hz encoding and decoding (bug#23814)

* lisp/language/china-util.el (decode-hz-region): Pay
attention to "~~}" sequence at the end of Chinese character
range.
(hz-category-table): New variable.
(encode-hz-region): Convert non-encodable characters to
\u... and \U...  Preserve ESC on ecoding.  Put
`chinese-gb2312' `charset' text property in advance to force
iso-2022-encoding to select chinese-gb2312 designation.
lisp/language/china-util.el