From e01a8566ef6cf52c8f861049faf438da174dfac4 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 18 Sep 2024 08:29:36 +0200 Subject: [PATCH] Encoding: GB18030-2022 encode Correct a mistake in 62fb5069554ec9c374fdbff868c4c5da72509f37. The leading 0x00 bytes are wrong. --- .../gb18030/gb18030-encoder.html | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html b/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html index ca131e14fdfca9..dc0dc43468f248 100644 --- a/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html +++ b/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html @@ -43,24 +43,24 @@ encode("\u9FB9", "%FE~", "GB18030-2022 16"); encode("\u9FBA", "%FE%90", "GB18030-2022 17"); encode("\u9FBB", "%FE%A0", "GB18030-2022 18"); - encode("\uE78D", "%00%00%A6%D9", "GB18030-2022 19"); - encode("\uE78E", "%00%00%A6%DA", "GB18030-2022 20"); - encode("\uE78F", "%00%00%A6%DB", "GB18030-2022 21"); - encode("\uE790", "%00%00%A6%DC", "GB18030-2022 22"); - encode("\uE791", "%00%00%A6%DD", "GB18030-2022 23"); - encode("\uE792", "%00%00%A6%DE", "GB18030-2022 24"); - encode("\uE793", "%00%00%A6%DF", "GB18030-2022 25"); - encode("\uE794", "%00%00%A6%EC", "GB18030-2022 26"); - encode("\uE795", "%00%00%A6%ED", "GB18030-2022 27"); - encode("\uE796", "%00%00%A6%F3", "GB18030-2022 28"); - encode("\uE81E", "%00%00%FEY", "GB18030-2022 29"); - encode("\uE826", "%00%00%FEa", "GB18030-2022 30"); - encode("\uE82B", "%00%00%FEf", "GB18030-2022 31"); - encode("\uE82C", "%00%00%FEg", "GB18030-2022 32"); - encode("\uE832", "%00%00%FEm", "GB18030-2022 33"); - encode("\uE843", "%00%00%FE~", "GB18030-2022 34"); - encode("\uE854", "%00%00%FE%90", "GB18030-2022 35"); - encode("\uE864", "%00%00%FE%A0", "GB18030-2022 36"); + encode("\uE78D", "%A6%D9", "GB18030-2022 19"); + encode("\uE78E", "%A6%DA", "GB18030-2022 20"); + encode("\uE78F", "%A6%DB", "GB18030-2022 21"); + encode("\uE790", "%A6%DC", "GB18030-2022 22"); + encode("\uE791", "%A6%DD", "GB18030-2022 23"); + encode("\uE792", "%A6%DE", "GB18030-2022 24"); + encode("\uE793", "%A6%DF", "GB18030-2022 25"); + encode("\uE794", "%A6%EC", "GB18030-2022 26"); + encode("\uE795", "%A6%ED", "GB18030-2022 27"); + encode("\uE796", "%A6%F3", "GB18030-2022 28"); + encode("\uE81E", "%FEY", "GB18030-2022 29"); + encode("\uE826", "%FEa", "GB18030-2022 30"); + encode("\uE82B", "%FEf", "GB18030-2022 31"); + encode("\uE82C", "%FEg", "GB18030-2022 32"); + encode("\uE832", "%FEm", "GB18030-2022 33"); + encode("\uE843", "%FE~", "GB18030-2022 34"); + encode("\uE854", "%FE%90", "GB18030-2022 35"); + encode("\uE864", "%FE%A0", "GB18030-2022 36"); const upperCaseNibble = x => { return Math.floor(x).toString(16).toUpperCase();