diff options
Diffstat (limited to 'Python/codecs.c')
-rw-r--r-- | Python/codecs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index 7003136..4c2ae38 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -960,6 +960,10 @@ get_standard_encoding(const char *encoding, int *bytelength) } } } + else if (strcmp(encoding, "CP_UTF8") == 0) { + *bytelength = 3; + return ENC_UTF8; + } return ENC_UNKNOWN; } |