Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 273679f

Browse files
committed
Adding new charset replacement (reported via email)
1 parent 663c976 commit 273679f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/basic.py

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

152152
# Reference: http://www.destructor.de/charsets/index.htm
153-
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", "windows-31j": "cp932"}
153+
translate = {"windows-874": "iso-8859-11", "utf-8859-1": "utf8", "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", "windows-31j": "cp932"}
154154

155155
for delimiter in (';', ',', '('):
156156
if delimiter in encoding:

0 commit comments

Comments
 (0)