0

I'm trying to print a string in utf-8 form,the ideal result is as follow :

enter image description here

enter image description here

and it actually works that way if I mean it.

However,when i try to print another string just seems like it,the result is

enter image description here

and i have found out what is wrong,but i don't know how to fix it. The problem is the string i am trying to print is:

enter image description here

i try to remove one of the '\',but it means one '\' when there is actually '\\',yet the difference is made. can someone save me from this puzzle? Thanks a lot!

Liaoxiaochen
  • 139
  • 2
  • 11

1 Answers1

0

Try using "\\xe6\\x90\\x9c".decode('string_escape')

example

Yinzo
  • 165
  • 2
  • 8