Skip to content
Advertisement

Tag: unicode-escapes

Unicode decode mismatch on emojis when using json loads

I have a list of utf-8 encoded objects such as : and decode it as follows: I notice that some emojis are not converted as expected as shown below: However, when I decode an individual string, I get the expected output: I’m not sure why the first approach using json.loads gives an unexpected output. Can someone provide any pointers? Answer

Advertisement