From 225c6823e237f0b5ce84d47d7b950449aadb4930 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Mon, 25 Jun 2007 17:20:46 +0000
Subject: [PATCH] convert unicode string

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

diff --git a/product/ERP5SyncML/SynchronizationTool.py b/product/ERP5SyncML/SynchronizationTool.py
index d87d439a11..624ad93352 100644
--- a/product/ERP5SyncML/SynchronizationTool.py
+++ b/product/ERP5SyncML/SynchronizationTool.py
@@ -823,6 +823,8 @@ class SynchronizationTool( SubscriptionSynchronization,
     #LOG('sendResponse, from_url: ',0,from_url)
     #LOG('sendResponse, sync_id: ',0,sync_id)
     #LOG('sendResponse, xml: \n',0,xml)
+    if isinstance(xml, unicode):
+      xml = xml.encode('utf-8')
     if domain is not None:
       gpg_key = domain.getGPGKey()
       if gpg_key not in ('',None):
-- 
2.30.9