From f44b3b7df8c4868f3e1364db8ab1874b36df4ca6 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Sun, 15 Jul 2007 05:39:21 +0000 Subject: fix replace to work with non-ascii text (bzr r3246) --- share/extensions/text_replace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') 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() -- cgit v1.2.3