retitle 487729 can't handle non-ASCII characters in literal blocks
thank you

On Tue, Jun 24, 2008 at 06:05:13PM +0200, Michael Schutte wrote:
> Could you provide a simple testcase?

On further testing, I've isolated the issue to literal blocks (I was
using UTF-8 box drawing characters in a literal block).  Here is a
sample showing the error, using an acute a:

$ printf '::\n\n\tá' | rst2odt - /dev/null
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 
118: ordinal not in range(128)

The specified output encoding (utf-8) cannot
handle all of the output.
Try setting "--output-encoding-error-handler" to

* "xmlcharrefreplace" (for HTML & XML output);
  the output will contain "á" and should be usable.
* "backslashreplace" (for other output formats, Python 2.3+);
  look for "\xe1" in the output.
* "replace"; look for "?" in the output.

"--output-encoding-error-handler" is currently set to "xmlcharrefreplace".

Exiting due to error.  Use "--traceback" to diagnose.
If the advice above doesn't eliminate the error,
please report it to <[EMAIL PROTECTED]>.
Include "--traceback" output, Docutils version (0.5),
Python version (2.5.2), your OS type & version, and the
command line used.
$ 




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to