0

I received a Java escape character, \ud83d\ude0d, how to change it to Python escape characters?

Are there any Python functions or packages for this conversion?

Thank you very much.

John
  • 691
  • 1
  • 7
  • 20

1 Answers1

0

If you get the string with requests, you may try to use the following method

import json
import requests

data = requests.get(r'https://example.com').json()
Chan
  • 3,605
  • 9
  • 29
  • 60