From 1340ec5d55b99556eab671fdc69c2281eb466f1d Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 20 May 2012 21:41:02 +0200 Subject: [PATCH] No need to encode params. fix #311 --- couchpotato/core/helpers/request.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/helpers/request.py b/couchpotato/core/helpers/request.py index 8bedf6c4..7ff4bb29 100644 --- a/couchpotato/core/helpers/request.py +++ b/couchpotato/core/helpers/request.py @@ -26,7 +26,7 @@ def getParams(): for item in nested: if item is nested[-1]: - current[item] = toUnicode(unquote(value)).encode('utf-8') + current[item] = toUnicode(unquote(value)) else: try: current[item] @@ -35,7 +35,7 @@ def getParams(): current = current[item] else: - temp[param] = toUnicode(unquote(value)).encode('utf-8') + temp[param] = toUnicode(unquote(value)) return dictToList(temp) @@ -57,7 +57,7 @@ def dictToList(params): def getParam(attr, default = None): try: - return toUnicode(unquote(getattr(flask.request, 'args').get(attr, default))).encode('utf-8') + return toUnicode(unquote(getattr(flask.request, 'args').get(attr, default))) except: return default