消息 [173806]
> What show sys.getdefaultencoding(), sys.getfilesystemencoding(), and locale.getpreferredencoding()?
C:\Python33>python.exe
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.getdefaultencoding()
'utf-8'
>>> sys.getfilesystemencoding()
'mbcs'
>>> import locale
>>> locale.getpreferredencoding()
'cp932'
>>>
'cp932' is the same as 'mbcs' in the Japanese environment. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2012-10-25 22:55:46 | msmhrt | 修改 | recipients:
+ msmhrt, amaury.forgeotdarc, belopolsky, vstinner, serhiy.storchaka |
| 2012-10-25 22:55:46 | msmhrt | 修改 | messageid: <1351205746.62.0.224574632039.issue16322@psf.upfronthosting.co.za> |
| 2012-10-25 22:55:46 | msmhrt | 链接 | issue16322 messages |
| 2012-10-25 22:55:46 | msmhrt | 创建 | |
|