How to decode unicode (non-ASCII) characters in Python

1 Answer

0 votes
s = b'Abc\xfcJdfh\\u01dfy'

d = s.decode('unicode-escape')
 
print(d)




  
'''
run:
   
AbcüJdfhǟy
  
'''

 



answered Apr 24, 2021 by avibootz
...