[reportlab-users] Unicode character Eclipse IDE vs. MS VisualStudio 2012
Tom Py
mailtank2013 at gmail.com
Thu Jan 17 04:37:39 EST 2013
Hi,
I have a problem with unicode charcters writing in a table (see
minimalistic example):
Running the script in Eclipse, everything works fine. But in MS VS2012 I
get an exception (System.Text.DecoderFallbackException, Message=Unable to
translate bytes [C3] at index 0 from specified code page to Unicode.).
min. example begin
# -*- coding: latin-1 -*-
from reportlab.pdfgen import canvas
from reportlab.platypus import Table
str = [['ü']]
myCanvas = canvas.Canvas("test.pdf")
tableData = Table(str)
tableData.wrapOn(myCanvas, 0, 0)
tableData.drawOn(myCanvas, 0, 0)
myCanvas.getpdfdata()
print 'done'
min. example end
I'm using IronPython 2.7.2 and ReportLab 2.5
Does anyone have an idea?
Thx, Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20130117/1f91743b/attachment.htm>
More information about the reportlab-users
mailing list