New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding error in werkzeug-0.9.6 on Python 3.3.5 #551
Comments
Can you post the full traceback, indented by four spaces (so the formatting doesn't break)? |
Can you verify it the same problem appears in Python 2.7? |
This is too weird! |
When I rediscovered the error, I will try the code on python2.7 |
i get it. after i change the source code "f = open(self.filename)" to "f = open(self.filename,encoding='utf-8')" in python 3.3,when i write some wrong code ,i get the error info the same with python 2.7. thank you for the attention |
Is the sourcecode change in your own application or in Werkzeug? |
I don't change the source code of werkzeug or flask. |
Okay, i thought because the line |
maybe. |
I just got about the same traceback and |
when i use flask0.10.1 to write view_function and template ,it throw UnicodeDecodeError.
i find the Error is thrown at “source = f.read()” in tbtools.py.
when i edit the source code "f = open(self.filename)" to "f = open(self.filename,encoding='utf-8')". the error is fixed.
so i think there maybe is a issue at "f = open(self.filename)"(line number is 463) on python 3.3.5
Error is "UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 353: illegal multibyte sequence".and "File "C:\Python33\lib\site-packages\werkzeug-0.9.6-py3.3.egg\werkzeug\debug\tbtools.py", line 467, in sourcelines
source = f.read()"
The text was updated successfully, but these errors were encountered: