Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExecuting scripts with non ascii characters results in UnicodeDecodeError #625
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi team: bpython could be the best interpreter I have ever tried, which is really cool.
But I got some problems with it recently. I can reproduce this issue with the following conditions:
OS: OSX EI Capitan/Ubuntu 3.13.0-81-generic 64bit
bpython version 0.15 on top of Python 2.7.11 or 2.7.11
if you have a script like:
run
bpython -i test.pyand you will be able to see the following exceptions:Removing non ascii characters from script and we can get the issue resolved, but this doesn't seem to be a good idea, since we sometimes really need those non ascii characters. Besides running this script with python works.
Seems bpython will append coding declaration automatically prior to code execution, and that could be the root cause:
Just wondering do we have any solutions regarding to this issue? Thank you in advance!