From c5aa38600e1f3e77747bb37e685c9ae55a62e8f9 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Fri, 9 Oct 2009 14:32:59 +0000
Subject: [PATCH] use encoding variable instead of hardcoded value

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29537 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/ListBox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 3c1a589509..e724c45aa1 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -2370,7 +2370,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
           # JPS-XXX - I think we should not display a URL for objects
           # which do not have the View permission
           if type(url) is str:
-            url = unicode(url.decode('utf-8'))
+            url = unicode(url, encoding)
           html = u'<a href="%s">%s</a>' % (url, processed_value)
 
       html_list.append((html, original_value, error, editable_field, url))
-- 
2.30.9