From 6d1a7721d161405d5fcb4e51850f896907ba9391 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Wed, 1 Oct 2008 19:27:58 -0500 Subject: Switch encoding on SVG exporter --- fedora_business_cards/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit