@David Goodger, I have tried 2.6.6, but same issue. I will ignore those issues mentioned before, since buildhtml.py works for many existed .txt files.
@David Sankel, Thanks for your tips. 

2012/3/2 David Sankel <camior@gmail.com>
On Wed, Feb 29, 2012 at 10:54 PM, David Goodger <goodger@python.org> wrote:
On Tue, Feb 28, 2012 at 23:09, ning zhou <nathon.py@gmail.com> wrote:> BTW,  C:\python26\python.exe buildhtml.py .. > buildhtml.log could not
> redirect the output on screen to the file  buildhtml.log. I have to copy it
> to the buildhtml.log.

That must be a Windows thing, nothing Docutils can do about it.

Try "C:\python26\python.exe buildhtml.py .. 2>&1 > buildhtml.log" instead. This redirects the error output to the normal output before sending it to a file.

David

-- 
David Sankel
Sankel Software
www.sankelsoftware.com