[reportlab-users] Unicode character Eclipse IDE vs. MS VisualStudio 2012

Robin Becker robin at reportlab.com
Fri Jan 18 06:20:26 EST 2013


On 18/01/2013 10:18, Tom Py wrote:

> Hi Robin,

>

> in Eclipse IDE it works fine but in VS2012 I get an error for both ways:


not exactly sure what you mean by VS2012, are you running ironpython in
visualstudio? How does the code work when you run it in ironpython? This stuff
all works fine in CPython and mostly in jython. Presumably the ironpython in
vs2012 has some difference from that being used in eclipse or the ide is
breaking the actual code in some other way. Unfortunately I can't map your line
numbers to the latest code so I don't know exactly where this is breaking. The
code in pdfbase/rl_codecs is using stuff from the codecs library so perhaps
that's where things are broken.



>

> Traceback (most recent call last):

> File "C:\Program Files (x86)\IronPython

> 2.7.2\lib\site-packages\reportlab\platypus\tables.py", line 562, in

> _calc_height

> File "C:\Daten\reportlabTest\reportlabTest\reportlabTest.py", line 9, in

> <module>

> File "C:\Program Files (x86)\IronPython

> 2.7.2\lib\site-packages\reportlab\platypus\flowables.py", line 120, in

> wrapOn

> File "C:\Program Files (x86)\IronPython

> 2.7.2\lib\site-packages\reportlab\platypus\tables.py", line 1172, in wrap

> File "C:\Program Files (x86)\IronPython

> 2.7.2\lib\site-packages\reportlab\platypus\tables.py", line 624, in _calc

> UnicodeDecodeError: ('unknown', u'\xc3', 0, 1, '')Press any key to continue

> . . .

>

>

> Any idea?

>

> Tom

>.........


--
Robin Becker


More information about the reportlab-users mailing list