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.

作者 loewis
收信人 cfr, loewis, pitrou
日期 2008-08-12.07:19:37
SpamBayes Score 0.0013175673
Marked as misclassified
Message-id <1218525581.09.0.797840137148.issue3362@psf.upfronthosting.co.za>
In-reply-to
内容
Lists of possible string encodings are here:

http://developer.apple.com/documentation/CoreFoundation/Reference/CFStringRef/Reference/reference.html#//apple_ref/c/tdef/CFStringBuiltInEncodings

and

http://developer.apple.com/documentation/CoreFoundation/Reference/CFStringRef/Reference/reference.html#//apple_ref/doc/constant_group/External_String_Encodings

So it would be interesting to know what CFStringGetSystemEncoding
returns on your system. Notice the special value
kCFStringEncodingInvalidId, which it might also return.

I think

  printf("Encoding is %x\n", enc);

should do.

I think mac_getscript is fine as it stands: if name is NULL, it tries
CFStringConvertEncodingToIANACharSetName which should perform a lookup
in the Apple database.
历史
日期 用户 动作 参数
2008-08-12 07:19:41loewis修改recipients: + loewis, pitrou, cfr
2008-08-12 07:19:41loewis修改messageid: <1218525581.09.0.797840137148.issue3362@psf.upfronthosting.co.za>
2008-08-12 07:19:40loewis链接issue3362 messages
2008-08-12 07:19:39loewis创建