summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Weller <ianweller@gmail.com>2008-10-01 19:27:58 -0500
committerIan Weller <ianweller@gmail.com>2008-10-01 19:27:58 -0500
commit6d1a7721d161405d5fcb4e51850f896907ba9391 (patch)
tree807ace356f3223c4cd4673e8a21f56bea8f76214
parentd8894e95048d143c09888d1cc964882372260036 (diff)
downloadfedora-business-cards-6d1a7721d161405d5fcb4e51850f896907ba9391.zip
fedora-business-cards-6d1a7721d161405d5fcb4e51850f896907ba9391.tar.gz
fedora-business-cards-6d1a7721d161405d5fcb4e51850f896907ba9391.tar.xz
Switch encoding on SVG exporter
-rw-r--r--fedora_business_cards/export.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fedora_business_cards/export.py b/fedora_business_cards/export.py
index c6d8a86..1adf7ba 100644
--- a/fedora_business_cards/export.py
+++ b/fedora_business_cards/export.py
@@ -41,7 +41,7 @@ def svg_to_pdf_png(xmlstring, filename, format='png', dpi=300):
format = either 'png' or 'pdf'
dpi = DPI to export PNG with (default: 300)
"""
- stdin = xmlstring.encode('iso-8859-1')
+ stdin = xmlstring.encode('utf-8')
command = ['inkscape', '-d', str(dpi), '-e', filename, '/dev/stdin']
if format == 'png':
sp = subprocess.Popen(' '.join(command), shell=True,