diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-07-15 05:39:21 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-07-15 05:39:21 +0000 |
| commit | f44b3b7df8c4868f3e1364db8ab1874b36df4ca6 (patch) | |
| tree | bbd3976d10a97864e1300184b53abc078614784b /share/extensions/text_replace.py | |
| parent | text replace (diff) | |
| download | inkscape-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.py | 2 |
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()
|
