diff options
Diffstat (limited to 'encoding_gb.js')
| -rw-r--r-- | encoding_gb.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/encoding_gb.js b/encoding_gb.js index 228fae1..72c7253 100644 --- a/encoding_gb.js +++ b/encoding_gb.js | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | // for codes 0x2121 - 0x296F and 0x3021 - 0x777E | 2 | // for codes 0x2121 - 0x296F and 0x3021 - 0x777E |
| 3 | // | 3 | // |
| 4 | // The unicode codes in second table have been normalized by | 4 | // The unicode codes in second table have been normalized by |
| 5 | // the amount of 19968 to save 5kBytes in this script, so the | 5 | // the amount of 0x4e00 to save 5kBytes in this script, so the |
| 6 | // actual value is 19968 + enc_gb2312_1[ x ] | 6 | // actual value is 0x4e00 + enc_gb2312_1[ x ] |
| 7 | 7 | ||
| 8 | function decode_gb2312( str ) { | 8 | function decode_gb2312( str ) { |
| 9 | var outstring = ""; | 9 | var outstring = ""; |
