Skip to content

Instantly share code, notes, and snippets.

@ashchristopher
Created May 26, 2011 14:00
Show Gist options
  • Save ashchristopher/993204 to your computer and use it in GitHub Desktop.
Save ashchristopher/993204 to your computer and use it in GitHub Desktop.
Write unicode data to file in python
import codecs
f = codecs.open('/tmp/myfile.csv', 'w', "utf-8")
# now use f as you would any file object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment