src/hdalab/views/ajax.py
changeset 280 56d84b0c267f
parent 279 177b508612f4
child 283 7a7035d3f7c9
--- a/src/hdalab/views/ajax.py	Fri Jun 20 13:10:39 2014 +0200
+++ b/src/hdalab/views/ajax.py	Fri Jun 20 17:04:51 2014 +0200
@@ -265,7 +265,7 @@
     no_translate_langs = [ 'fr' ]
     
     key_parts = ("filter",lang,periode,label,country,contentlist,max_tag_order,content_count,tag_count)
-    key_parts = [unicode(p).encode("utf-8") for p in key_parts]
+    key_parts = [unicode(p).encode("ascii", "ignore") for p in key_parts]
     
     cache_key = fix_cache_key("-".join(key_parts))
     
@@ -353,7 +353,6 @@
         
         translations = {}
         
-        logger.debug("ICI 0")
         if lang not in no_translate_langs:
             ts_list = []
             for ts in qs: