summaryrefslogtreecommitdiffstats
path: root/share/extensions/text_replace.py
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-07-15 05:39:21 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-07-15 05:39:21 +0000
commitf44b3b7df8c4868f3e1364db8ab1874b36df4ca6 (patch)
treebbd3976d10a97864e1300184b53abc078614784b /share/extensions/text_replace.py
parenttext replace (diff)
downloadinkscape-f44b3b7df8c4868f3e1364db8ab1874b36df4ca6.tar.gz
inkscape-f44b3b7df8c4868f3e1364db8ab1874b36df4ca6.zip
fix replace to work with non-ascii text
(bzr r3246)
Diffstat (limited to 'share/extensions/text_replace.py')
-rw-r--r--share/extensions/text_replace.py2
1 files changed, 1 insertions, 1 deletions
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()