0

I want to convert the byte data b'\u1eb9' back to a utf-8 character but failed. Why i can encode a unicode character to a byte data but cannot reverse the process? enter image description here

Q Anh
  • 11
  • 3
  • Are you using Visual Studio Code? If so, this may be relevant: https://stackoverflow.com/questions/44724461 – Wander Nauta Jun 24 '21 at 12:42
  • I use Sublime Text, but after that i tried this code on VS and it work so i think the system build of sublime text lack something. I add the "env": { 'PYTHONIOENCODING": "utf-8" } and it work. – Q Anh Jun 24 '21 at 12:50
  • You may try [this post's method](https://stackoverflow.com/a/24242596/5223223). – dibery Jun 24 '21 at 13:24

1 Answers1

0

I use Sublime Text, but after that i tried this code on VS and it work so i think the system build of sublime text lack something. I add the "env": { 'PYTHONIOENCODING": "utf-8" } and it work.

Q Anh
  • 11
  • 3