Skip to content

Instantly share code, notes, and snippets.

@drvenabili
Created April 8, 2016 16:04
Show Gist options
  • Save drvenabili/0d3316ec94bb3c6b684049b2b13c2551 to your computer and use it in GitHub Desktop.
Save drvenabili/0d3316ec94bb3c6b684049b2b13c2551 to your computer and use it in GitHub Desktop.
import codecs, urllib
import io
f = open("annesql.csv","r")
f = f.readlines()
x = io.open("annesqldecode.csv","w",encoding="utf8")
for line in f:
line = urllib.unquote(line).decode("utf8")
x.write(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment