Skip to content

Instantly share code, notes, and snippets.

@jstenar
Created September 6, 2011 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstenar/1198529 to your computer and use it in GitHub Desktop.
Save jstenar/1198529 to your computer and use it in GitHub Desktop.
Script to generate stdout for different codepages
# -*- coding: utf-8 -*-
import sys
data = u"Test data åäö"
print data.encode(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment