From: buliabyak Date: Sun, 15 Jul 2007 05:39:21 +0000 (+0000) Subject: fix replace to work with non-ascii text X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2ca86953158131fc6f4a82698d4b19bed4f32874;p=inkscape.git fix replace to work with non-ascii text --- 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()