This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Geraldo.Xexeo, THRlWiTi, Tomoki.Imai, alex.hartwig, asvetlov, benjamin.peterson, ezio.melotti, kbk, ned.deily, pradyunsg, r.david.murray, roger.serwy, serhiy.storchaka, terry.reedy
Date 2014-05-23.14:37:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400855836.42.0.491965991926.issue15809@psf.upfronthosting.co.za>
In-reply-to
Content
When someone reads file in locale encoding (either as str or unicode in 2.7), he gets printable result. When someone lists directory, he gets printable result (str or unicode). When someone enter string literal (either str or unicode) in interactive mode, he gets printable result. This is expected behavior. And this means that default encoding for text files, filesystem encoding and encoding used in interactive Python (or IDLE console) should be the same, locale encoding.

> Irdb said "As a Windows user, currently I can't print u'йцук' in interactive mode and get an "Unsupported characters in input" error because my default system encoding (cp1256) can't encode Russian.)"

This is different issue. It would be better if IDLE will filter pasted text and replace unencodable characters or underscore them with wavy red line.
History
Date User Action Args
2014-05-23 14:37:16serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, kbk, benjamin.peterson, ned.deily, ezio.melotti, roger.serwy, r.david.murray, asvetlov, THRlWiTi, Geraldo.Xexeo, alex.hartwig, pradyunsg, Tomoki.Imai
2014-05-23 14:37:16serhiy.storchakasetmessageid: <1400855836.42.0.491965991926.issue15809@psf.upfronthosting.co.za>
2014-05-23 14:37:16serhiy.storchakalinkissue15809 messages
2014-05-23 14:37:15serhiy.storchakacreate