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.
Created on 2012年03月08日 04:35 by metolone, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg155149 - (view) | Author: Mark Tolonen (metolone) | Date: 2012年03月08日 04:35 | |
This is on Windows 7 SP1. Run 'chcp 65001' then Python from a console. Note the extra characters when non-ASCII characters are in the string. At a guess it appears to be using the UTF-8 byte length of the internal representation instead of the character count.
Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print('hello')
hello
>>> print('p\u012bny\u012bn')
pīnyīn
n
>>> print('\u012b'*10)
īīīīīīīīīī
�īīīī
�ī
|
|||
| msg155158 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2012年03月08日 11:48 | |
See the issue #1602. |
|||
| msg157568 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2012年04月05日 11:46 | |
I'm quite sure that this issue is a duplicate of #1602. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:27 | admin | set | github: 58435 |
| 2012年04月05日 11:46:33 | vstinner | set | status: open -> closed resolution: duplicate messages: + msg157568 |
| 2012年03月08日 11:48:57 | vstinner | set | messages: + msg155158 |
| 2012年03月08日 10:28:00 | ezio.melotti | set | nosy:
+ loewis, vstinner |
| 2012年03月08日 04:35:32 | metolone | create | |