Sorry, but this seems to be a shell problem::

rst2xml.py document.rst out_document.xml works fine.

On Wed, Mar 28, 2012 at 11:09 AM, Paul Tremblay <paulhtremblay@gmail.com> wrote:
I get the following encoding error on mingw32 system (Windows XP).

(Unf****ing believable. I have struggled with f***ing encoding problems with python for over a decade. It never ends.)

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2543: character maps to <undefined>
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 2543: character maps to <undefined>
Exiting due to error.  Use "--traceback" to diagnose.
Please report errors to <docutils-users@lists.sf.net>.
Include "--traceback" output, Docutils version (0.9 [snapshot 2011-08-30, r7116]),
Python version (3.2.2), your OS type & version, and the
Traceback (most recent call last):
  File "c:/Python32/Scripts/rst2xml.py", line 23, in <module>
    publish_cmdline(writer_name='xml', description=description)
  File "c:\Python32\lib\site-packages\docutils\core.py", line 339, in publish_cmdline
    config_section=config_section, enable_exit_status=enable_exit_status)
  File "c:\Python32\lib\site-packages\docutils\core.py", line 211, in publish
    self.settings)
  File "c:\Python32\lib\site-packages\docutils\readers\__init__.py", line 68, in read
    self.input = self.source.read()
  File "c:\Python32\lib\site-packages\docutils\io.py", line 238, in read
    data = self.source.read()
  File "c:\Python32\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]