Message18899
| Author |
tim_evans |
| Recipients |
| Date |
2003年11月06日.22:21:21 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=561705
I have looked at the source code for the MS C library (it
comes with VC++6) and I believe that that something
equivalent to the following is used:
char codepage[16];
GetLocaleInfo(
GetThreadLocale(),
LOCALE_IDEFAULTANSICODEPAGE,
codepage, 16);
This returns "1252" for "C" locale, and for the chinese
locale that I was expirmenting with it returns "936".
Python does not have an encoding "cp936", but from C the
conversion with an explicit codepage produces the same
results as mbstwcs. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:18:07 | admin | link | issue836035 messages |
| 2007年08月23日 14:18:07 | admin | create |
|