Skip to content

Instantly share code, notes, and snippets.

@prakashrd
Created April 11, 2018 02:17
Show Gist options
  • Save prakashrd/438c3173e4fe0acd47ae1fb10d602435 to your computer and use it in GitHub Desktop.
Save prakashrd/438c3173e4fe0acd47ae1fb10d602435 to your computer and use it in GitHub Desktop.
Read an encoded UTF-16 file with python
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