diff options
author | flavio <fdanesse@gmail.com> | 2012-12-14 12:17:42 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2012-12-14 12:17:42 (GMT) |
commit | e98506d07f590393717250ff0edbcc505517f939 (patch) | |
tree | 474de7ec38deaf9076d460040c4424f57149c229 | |
parent | 8013824cb97b266c88a5bddb52aa96e263038035 (diff) |
Corrections Rsvg encode
-rw-r--r-- | utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ): |