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

Skip to content

Commit 240e9f3

Browse files
committed
Minor patch
1 parent 50ac3aa commit 240e9f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/request/basic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def checkCharEncoding(encoding, warn=True):
134134
encoding = encoding.replace("2313", "2312") # gb2313 -> gb2312
135135
elif "x-euc" in encoding:
136136
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
137139

138140
# name adjustment for compatibility
139141
if encoding.startswith("8859"):

0 commit comments

Comments
 (0)