Python 2.7 IDLE Win32 interactive, pasted characters i- wrong encoding

wxjmfauth at gmail.com wxjmfauth at gmail.com
Wed Aug 20 04:26:39 EDT 2014


Le mardi 19 août 2014 11:23:10 UTC+2, Chris Angelico a écrit :
> 
> 
> There are two parts to the problem. Idle is interpreting my pasted
> 
> text as CP-1252, but then the exec under the covers is defaulting to
> 
> something else (Latin-1?). If exec were told to use 1252, then I think
> 
> this would probably work (maybe?) - it'd be limited to a subset of
> 
> Unicode characters, but it'd function. In theory, the encoding used
> 
> between Idle's front-end and the back-end executor should be an
> 
> implementation detail, nothing more - as long as they agree, all's
> 
> well.
> 
> 
> 

Soon you will be able to create a Python 3 app that
systematically fails or crashes, as I'm able to do.

---

Idle, Py2, unicode, ...
Your (incomplete) intepretation si correct.

jmf



More information about the Python-list mailing list