From: Fred L. D. <fd...@us...> - 2003-07-29 22:47:15
|
Update of /cvsroot/ht2html/ht2html In directory sc8-pr-cvs1:/tmp/cvs-serv30404 Modified Files: htwf.py Log Message: desparately try to support encodings: this works for us-ascii and iso-8859-1, but that's probably it Index: htwf.py =================================================================== RCS file: /cvsroot/ht2html/ht2html/htwf.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** htwf.py 29 Jul 2003 20:29:41 -0000 1.2 --- htwf.py 29 Jul 2003 22:47:07 -0000 1.3 *************** *** 59,63 **** return newtext = g.makepage() ! p = expat.ParserCreate() p.StartElementHandler = self.startElement try: --- 59,67 ---- return newtext = g.makepage() ! charset = g.get_charset() ! if charset: ! p = expat.ParserCreate(charset) ! else: ! p = expat.ParserCreate() p.StartElementHandler = self.startElement try: |