From 2ca86953158131fc6f4a82698d4b19bed4f32874 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 15 Jul 2007 05:39:21 +0000 Subject: [PATCH] fix replace to work with non-ascii text --- share/extensions/text_replace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/extensions/text_replace.py b/share/extensions/text_replace.py index 3ea665970..73b562743 100644 --- a/share/extensions/text_replace.py +++ b/share/extensions/text_replace.py @@ -10,7 +10,7 @@ class C(chardataeffect.CharDataEffect): fr = self.options.from_text.strip('"').replace('\$','$') to = self.options.to_text.strip('"').replace('\$','$') - return (text.replace(fr, to)) + return (text.replace(unicode(fr,"utf-8"), unicode(to,"utf-8"))) c = C() c.affect() -- 2.30.2