micropython / micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://micropython.org
Other
19.2k stars 7.69k forks source link

GB2312 and GBK encoding doesn't work on MicroPython #6951

Closed fred913 closed 3 years ago

fred913 commented 3 years ago

How To Reappearance:

Platform: MicroPython v1.14 on 2021-02-02; ESP module with ESP8266 Just evaluate the following evaluation: "一".encode("gbk") The result is same as "一".encode("utf-8") But as you know, UTF-8 encoding is not same as GB2312 encoding. Does MicroPython support GB2312 encoding?

dlech commented 3 years ago

Does MicroPython support GB2312 encoding?

No, it does not.