Skip to content

Commit 2d5461d

Browse files
committed
Minor fix (related to the unknown encoding reported by ML)
1 parent 65c4ea1 commit 2d5461d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/request/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def checkCharEncoding(encoding, warn=True):
141141
return encoding
142142

143143
# Reference: http://www.destructor.de/charsets/index.htm
144-
translate = {"windows-874": "iso-8859-11", "en_us": "utf8", "macintosh": "iso-8859-1", "euc_tw": "big5_tw", "th": "tis-620", "unicode": "utf8", "utc8": "utf8", "ebcdic": "ebcdic-cp-be", "iso-8859": "iso8859-1", "ansi": "ascii"}
144+
translate = {"windows-874": "iso-8859-11", "en_us": "utf8", "macintosh": "iso-8859-1", "euc_tw": "big5_tw", "th": "tis-620", "unicode": "utf8", "utc8": "utf8", "ebcdic": "ebcdic-cp-be", "iso-8859": "iso8859-1", "ansi": "ascii", "gbk2312": "gbk"}
145145

146146
for delimiter in (';', ',', '('):
147147
if delimiter in encoding:

0 commit comments

Comments
 (0)