From dcdbaec6db93ba6cbfe4e8bd9f7868185497b2ab Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 12 Aug 2014 10:30:39 +0530 Subject: [PATCH] [hotfix] MySQLdb escape_string --- frappe/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/database.py b/frappe/database.py index 66394e0114..fe3c67929e 100644 --- a/frappe/database.py +++ b/frappe/database.py @@ -549,4 +549,4 @@ class Database: self._conn = None def escape(self, s): - return MySQLdb.escape_string(s) + return unicode(MySQLdb.escape_string((s or "").encode("utf-8")), "utf-8")