Created
April 12, 2016 07:16
-
-
Save g33klord/b9b0cf31a7815520909288361436b8d9 to your computer and use it in GitHub Desktop.
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
# write list of list to csv having ascii encoding issue | |
# account_list = [['first_name', 'last_name', '[email protected]]...] | |
with open('output.csv', 'wb') as f: | |
writer = csv.writer(f) | |
for item in account_list: | |
writer.writerow([s.encode('utf8') for s in item]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment