Created
January 31, 2017 03:39
-
-
Save binki/a8b5afe0a04fc4fa32b878b33dac0128 to your computer and use it in GitHub Desktop.
Reading unicode CSV
This file contains hidden or 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
C:\Users\ohnob>.\readUnicodeCsv.py | |
勇気 |
This file contains hidden or 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
#!/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]) |
This file contains hidden or 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
"勇気" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment