It seems like it is only happening if you got an non-ascii character in the 
source name, probalby the reason nobody else has reported it...

Anyway - this is changed behavior.



Den tirsdag den 13. januar 2015 kl. 10.13.04 UTC+1 skrev Jonatan Hjul:
>
> I start getting the following traceback if I run a script containing an 
> error in a new console. It started after upgrading to the latest spyder 
> version.
>
> This is only happening on my windows 7 machine running python 2.7 (the 
> same version runs fine on linux).
>
> I have tried to reinstall and reset spyder - but that does not help....
>
> It seems to be an encoding issue. Source is in UTF-8.
>
> Traceback (most recent call last):
>   File 
> "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\pythonshell.py",
>  
> line 566, in write_error
>     self.shell.write_error(self.get_stderr())
>   File 
> "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\baseshell.py", 
> line 272, in get_stderr
>     return self.transcode(qba)
>   File 
> "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\baseshell.py", 
> line 258, in transcode
>     return to_text_string(qba.data(), 'utf8')
>   File "C:\Python27\lib\site-packages\spyderlib\py3compat.py", line 134, 
> in to_text_string
>     return unicode(obj, encoding)
>   File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
>     return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xf8 in position 93: 
> invalid start byte
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to