Unicode file names for images

13 views
Skip to first unread message

David Bolton

unread,
Nov 18, 2009, 5:14:15 PM11/18/09
to Pisa XHTML2PDF Support
I am trying to using images with Unicode file names but I get the
following message in the console. I'm not much of a Python expert. Any
suggestions or is this a limitation of Pisa?

David


E:\m\mscore\manual>pisa testpl.html
Converting testpl.html to E:\m\mscore\manual\testpl.pdf...
ERROR [ho.pisa] Tag handling
u'<p><img class="inline" height="164"
src="./files/paleta_powt\xc3\xb3rki.png" w
idth="228"/></p>'
Traceback (most recent call last):
File
"C:\Python25\lib\site-packages\pisa-3.0.31-py2.5.egg\sx\pisa3\pisa_parser
.py", line 109, in pisaGetAttributes
nv = c.getFile(nv)
File
"C:\Python25\lib\site-packages\pisa-3.0.31-py2.5.egg\sx\pisa3\pisa_contex
t.py", line 926, in getFile
return getFile(name, relative or self.pathDirectory)
File
"C:\Python25\lib\site-packages\pisa-3.0.31-py2.5.egg\sx\pisa3\pisa_util.p
y", line 554, in getFile
file = pisaFileObject(*a, **kw)
File
"C:\Python25\lib\site-packages\pisa-3.0.31-py2.5.egg\sx\pisa3\pisa_util.p
y", line 447, in __init__
uri = str(uri)
UnicodeEncodeError: 'ascii' codec can't encode characters in position
19-20: ord
inal not in range(128)
*** ERRORS OCCURED

testpl.zip
Reply all
Reply to author
Forward
0 new messages