From 4e4d47d6f8c49cf2b9c61560fc60d1b9dd265601 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 23 Jan 2012 22:49:38 +0100 Subject: [PATCH] toUnicode before stripaccents --- couchpotato/core/helpers/encoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/helpers/encoding.py b/couchpotato/core/helpers/encoding.py index 9e496e5f..7735904b 100644 --- a/couchpotato/core/helpers/encoding.py +++ b/couchpotato/core/helpers/encoding.py @@ -46,4 +46,4 @@ def isInt(value): return False def stripAccents(s): - return ''.join((c for c in unicodedata.normalize('NFD', s) if unicodedata.category(c) != 'Mn')) + return ''.join((c for c in unicodedata.normalize('NFD', toUnicode(s)) if unicodedata.category(c) != 'Mn'))