From aee16cdfdc5f8e34fba70e888a92ffd4d349507a Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 11 Aug 2011 13:27:15 +0530 Subject: [PATCH] fix for unicode, ask to use utf-8 encoding --- cgi-bin/webnotes/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/webnotes/utils/__init__.py b/cgi-bin/webnotes/utils/__init__.py index 5ee963863f..1f3e661515 100644 --- a/cgi-bin/webnotes/utils/__init__.py +++ b/cgi-bin/webnotes/utils/__init__.py @@ -295,7 +295,7 @@ def cstr(s): s = s.encode('utf-8', 'ignore') except: pass - return unicode(s) + return unicode(s, 'utf-8') def str_esc_quote(s): """