Message215937
| Author |
terry.reedy |
| Recipients |
LeslieK, terry.reedy, vstinner |
| Date |
2014年04月11日.17:43:22 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1397238203.35.0.38139538478.issue21164@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
You can change the code page of a Command Prompt window, before calling Python, with ...> chcp <code-page>. There is 'something' called cp65001 that is supposed to be a utf-8 codepage. Once can change to it, but it does not work right. This has been discussed on StackOverflow and elsewhere.
The Idle Shell, running on tkinter, handles everything in the BMP because tcl/tk is unicode (ucs-2) based. The characters that display properly depend on the font you select. On my machine, all but three of the following arbitrary codepoints display proper characters.
>>> print('\u1111\u2222\u3333\u4444\u5555\u6666\u7777\u8888\u9999\uaaaa\ubbbb\ucccc\udddd\ueeee')
ᄑ∢フィート䑄啕晦睷袈香ꪪ뮻쳌� |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年04月11日 17:43:23 | terry.reedy | set | recipients:
+ terry.reedy, vstinner, LeslieK |
| 2014年04月11日 17:43:23 | terry.reedy | set | messageid: <1397238203.35.0.38139538478.issue21164@psf.upfronthosting.co.za> |
| 2014年04月11日 17:43:23 | terry.reedy | link | issue21164 messages |
| 2014年04月11日 17:43:22 | terry.reedy | create |
|