Skip to content

Instantly share code, notes, and snippets.

@inkydragon
Created March 1, 2017 13:12
Show Gist options
  • Save inkydragon/aa22da05be4fccaa763f14937addafb1 to your computer and use it in GitHub Desktop.
Save inkydragon/aa22da05be4fccaa763f14937addafb1 to your computer and use it in GitHub Desktop.
import codecs
import utf9
def main():
with codecs.open("rfc4042") as file:
data = file.read()
#data = data.replace("\n", "")
#print utf9.utf9decode(data)
file.close()
return utf9.utf9decode(data)
with codecs.open("_DecodeFile.txt", "w", "utf-8-sig") as temp:
temp.write(main())
temp.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment