homepage

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 vstinner
Recipients David.Sankel, Matt.Mackall, akira, amaury.forgeotdarc, brian.curtin, christian.heimes, christoph, davidsarah, ezio.melotti, hippietrail, lemburg, mark, mhammond, pitrou, santoso.wijaya, smerlin, ssbarnea, terry.reedy, tim.golden, tzot, v+python, vstinner
Date 2012年04月05日.11:47:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333626428.0.0.761600168407.issue1602@psf.upfronthosting.co.za>
In-reply-to
Content
The issue #14227 has been marked as a duplicate of this issue. Copy of msg155149:
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)
īīīīīīīīīī
�īīīī
�ī
History
Date User Action Args
2012年04月05日 11:47:08vstinnersetrecipients: + vstinner, lemburg, mhammond, terry.reedy, tzot, amaury.forgeotdarc, pitrou, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, brian.curtin, davidsarah, santoso.wijaya, akira, David.Sankel, smerlin, Matt.Mackall
2012年04月05日 11:47:07vstinnersetmessageid: <1333626428.0.0.761600168407.issue1602@psf.upfronthosting.co.za>
2012年04月05日 11:47:07vstinnerlinkissue1602 messages
2012年04月05日 11:47:07vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /