From 240e9f3f7e87ad71d53f6b3190ef736e0727cc30 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 7 Apr 2013 11:02:43 +0200 Subject: [PATCH] Minor patch --- lib/request/basic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/request/basic.py b/lib/request/basic.py index 6f3f3f620..e48463d7c 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -134,6 +134,8 @@ def checkCharEncoding(encoding, warn=True): encoding = encoding.replace("2313", "2312") # gb2313 -> gb2312 elif "x-euc" in encoding: encoding = encoding.replace("x-euc", "euc") # x-euc-kr -> euc-kr + elif "windows-cp" in encoding: + encoding = encoding.replace("windows-cp", "windows") # windows-cp-1254 -> windows-1254 # name adjustment for compatibility if encoding.startswith("8859"):