Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

unicode will not pipe. #2

Open
openAccess opened this Issue Apr 4, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

openAccess commented Apr 4, 2012

when used in a pipe sequence.

What is the best way to make this work when piping? Can I just tell it to use whatever encoding the shell/filesystem/whatever is using?

The suggestions I have seen thus far is to modify your site.py directly, or hardcoding the defaultencoding using this hack:

-- coding: utf-8 --

import sys
reload(sys)
sys.setdefaultencoding('utf-8')
print "åäö"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment