From 9f549ea20c2ee18f81564c996d671b74e04e5495 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 17 Nov 2008 13:41:48 +0000
Subject: [PATCH] pass unicode to the DTML method, otherwise it do strange
 encoding (probably using manage_page_charset)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24607 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/RoleProviderBase.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/RoleProviderBase.py b/product/ERP5Type/RoleProviderBase.py
index c99eccdb72..8427b7f038 100644
--- a/product/ERP5Type/RoleProviderBase.py
+++ b/product/ERP5Type/RoleProviderBase.py
@@ -69,8 +69,8 @@ class RoleProviderBase:
 
             a1 = {}
             a1['id'] = a.getId()    # The Role Id (ex. Assignor)
-            a1['description'] = a.Description()    # The Role Description (ex. a person in charge of assigning orders)
-            a1['name'] = a.Title()  # The name of this role definition (ex. Assignor at company X)
+            a1['description'] = unicode(a.Description(), 'utf8', 'repr')    # The Role Description (ex. a person in charge of assigning orders)
+            a1['name'] = unicode(a.Title(), 'utf8', 'repr')  # The name of this role definition (ex. Assignor at company X)
             a1['category'] = a.getCategory() or [] # Category definition
             a1['base_category'] = a.getBaseCategory() # Base Category Definition
             a1['base_category_script'] = a.getBaseCategoryScript() # Base Category Script Id
-- 
2.30.9