CVS: ht2html htwf.py,1.2,1.3
"Fred L. Drake" <[email protected]> Tue, 29 Jul 2003 15:47:09 -0700
| Newsgroups | gmane.comp.web.ht2html.devel |
|---|---|
| Message-ID | <[email protected]> |
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:
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01