summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 996a77d)
raw | patch | inline | side by side (parent: 996a77d)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 15 Jul 2007 05:39:21 +0000 (05:39 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 15 Jul 2007 05:39:21 +0000 (05:39 +0000) |
share/extensions/text_replace.py | patch | blob | history |
index 3ea665970ba6d27314bf5997c6975c76480dc3bd..73b562743fd0a51cd9c82fec886e35f1521282cd 100644 (file)
fr = self.options.from_text.strip('"').replace('\$','$')\r
to = self.options.to_text.strip('"').replace('\$','$')\r
\r
- return (text.replace(fr, to))\r
+ return (text.replace(unicode(fr,"utf-8"), unicode(to,"utf-8")))\r
\r
c = C()\r
c.affect()\r