Re: Python3 - temporarily change the file encoding

2014-03-21 Thread Peter Otten
Helmut Jarausch wrote: > Hi, > > my locale is en_US.iso88591 > > But now I'd like to process a restructuredtext file which is encoded in > utf-8. > > rst2html has > > #!/usr/bin/python3.3 > > # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ > # Author: David Goodger > # Copyright: This

Python3 - temporarily change the file encoding

2014-03-21 Thread Helmut Jarausch
Hi, my locale is en_US.iso88591 But now I'd like to process a restructuredtext file which is encoded in utf-8. rst2html has #!/usr/bin/python3.3 # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger # Copyright: This module has been placed in the public domain. """ A