Add encoding header to Python files downloaded from notebooks. #1159

wants to merge 1 commit into


None yet

3 participants


Closes gh-1156.


This prevents the encoding header from appearing in the notebook interface. Is this the desired behavior?


Snap: PR #1158. ;-)

I'm pretty sure it is the desired behaviour - we execute code as unicode strings, and Python complains if it gets an encoding declaration in a unicode string. But we should remove it consistently (I've done it using the regex from PEP 263).

fperez commented Dec 15, 2011

Wow, we have dueling PRs! Neat!! BTW, we're on IRC right now if you guys want to jump in..

@bfroehle bfroehle closed this Dec 15, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment