Skip to content

Instantly share code, notes, and snippets.

@binki
Created January 31, 2017 03:39
Show Gist options
  • Save binki/a8b5afe0a04fc4fa32b878b33dac0128 to your computer and use it in GitHub Desktop.
Save binki/a8b5afe0a04fc4fa32b878b33dac0128 to your computer and use it in GitHub Desktop.
Reading unicode CSV
C:\Users\ohnob>.\readUnicodeCsv.py
勇気
#!/usr/bin/env python3
import csv
with open('x.csv', encoding='utf-8') as f:
reader = csv.reader(f)
for row in reader:
print(row[0])
"勇気"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment