Skip to content

Instantly share code, notes, and snippets.

@ScOut3R
Created October 10, 2015 22:13
Show Gist options
  • Save ScOut3R/5d1f935a6c1e0e565e41 to your computer and use it in GitHub Desktop.
Save ScOut3R/5d1f935a6c1e0e565e41 to your computer and use it in GitHub Desktop.
Mailman 2.1.16 UTF-8 conversion
#!/usr/bin/env python
import pickle
import sys
import paths
file = sys.argv[1]
config = pickle.load( open( file, "rb" ) )
config['description'] = config['description'].decode("latin-1")
pickle.dump( config, open( file, "wb" ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment