[Solved] How to decode javascript unicode string in python?


Use json module to help you solve different Unicode.

import json

a="\ud83d\udc95"
m = json.dumps({"k": a})
print(json.loads(m)["k"])  # ?

solved How to decode javascript unicode string in python?