I got the following errors, but was able to work
around the issue by replacing write(str) with
write(str.encode("utf-8") in the two occurences
reported below.
Running python 2.4.3 / epydoc 2.1_1 on OSX.
----------
File "/opt/local/bin/epydoc", line 7, in ?
cli()
File "/opt/local/lib/python2.4/site-packages/epydoc/
cli.py", line 113, in cli
if options['action'] == 'html': _html(docmap,
options)
File "/opt/local/lib/python2.4/site-packages/epydoc/
cli.py", line 605, in _html
try: html_doc.write(options['target'],
progress.report)
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 472, in write
progress_callback, uid.is_public(), uid, doc)
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 576, in _write
write_func(public, private, *args)
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 729, in _write_module
'Variable Summary')
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 2361, in _write_var_summary
self._write_var_summary_row(public, private, var,
container)
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 2432, in _write_var_summary_row
private.write(str)
UnicodeEncodeError: 'ascii' codec can't encode
character u'\xa0' in position 287: ordinal not in
range(128)
----------
File "/opt/local/bin/epydoc", line 7, in ?
cli()
File "/opt/local/lib/python2.4/site-packages/epydoc/
cli.py", line 113, in cli
if options['action'] == 'html': _html(docmap,
options)
File "/opt/local/lib/python2.4/site-packages/epydoc/
cli.py", line 605, in _html
try: html_doc.write(options['target'],
progress.report)
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 472, in write
progress_callback, uid.is_public(), uid, doc)
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 576, in _write
write_func(public, private, *args)
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 737, in _write_module
self._write_var_details(public, private, doc,
doc.variables())
File "/opt/local/lib/python2.4/site-packages/epydoc/
html.py", line 2471, in _write_var_details
private.write(str)
UnicodeEncodeError: 'ascii' codec can't encode
character u'\xa0' in position 392: ordinal not in
range(128)
----------
Logged In: YES
user_id=1053920
Originator: NO
Could you please check if epydoc 3.0 checked out from the trunk has the same issue? If so, please attach a code snippet showing the problem.
non-ascii support was barely hacked in epydoc 2.1, but is much more solid in 3.0.
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).