Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ac3aa commit 240e9f3Copy full SHA for 240e9f3
1 file changed
lib/request/basic.py
@@ -134,6 +134,8 @@ def checkCharEncoding(encoding, warn=True):
134
encoding = encoding.replace("2313", "2312") # gb2313 -> gb2312
135
elif "x-euc" in encoding:
136
encoding = encoding.replace("x-euc", "euc") # x-euc-kr -> euc-kr
137
+ elif "windows-cp" in encoding:
138
+ encoding = encoding.replace("windows-cp", "windows") # windows-cp-1254 -> windows-1254
139
140
# name adjustment for compatibility
141
if encoding.startswith("8859"):
0 commit comments