Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-12-14 12:17:42 (GMT)
committer flavio <fdanesse@gmail.com>2012-12-14 12:17:42 (GMT)
commite98506d07f590393717250ff0edbcc505517f939 (patch)
tree474de7ec38deaf9076d460040c4424f57149c229
parent8013824cb97b266c88a5bddb52aa96e263038035 (diff)
Corrections Rsvg encode
-rw-r--r--utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 68b03ee..7a3216b 100644
--- a/utils.py
+++ b/utils.py
@@ -40,7 +40,7 @@ def load_colored_svg(filename, stroke, fill):
entity = '<!ENTITY stroke_color "%s">' % stroke
data = re.sub('<!ENTITY stroke_color .*>', entity, data)
- Rsvg.Handle.new_from_data(name.encode('ascii', data)).get_pixbuf()
+ Rsvg.Handle.new_from_data(data.encode('utf-8')).get_pixbuf()
def getUniqueFilepath( path, i ):