Created
April 11, 2018 02:17
-
-
Save prakashrd/438c3173e4fe0acd47ae1fb10d602435 to your computer and use it in GitHub Desktop.
Read an encoded UTF-16 file with python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codecs | |
import json | |
json_data = json.load(codecs.open('url_entities.json', 'r', 'utf-16')) | |
json_rows = [r for r in json_data] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment