Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31488/spambayes
Modified Files:
Dibbler.py
Log Message:
More of [ 824651 ] Multibyte (CJK etc.) message support
Specify character set in web interface.
Index: Dibbler.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/Dibbler.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Dibbler.py 15 Nov 2005 00:40:28 -0000 1.17
--- Dibbler.py 10 Jun 2006 05:00:44 -0000 1.18
***************
*** 534,538 ****
headers.append("HTTP/1.1 200 OK")
headers.append("Connection: close")
! headers.append("Content-Type: %s" % contentType)
headers.append("Date: %s" % httpNow)
for name, value in extraHeaders.items():
--- 534,538 ----
headers.append("HTTP/1.1 200 OK")
headers.append("Connection: close")
! headers.append('Content-Type: %s; charset="utf-8"' % contentType)
headers.append("Date: %s" % httpNow)
for name, value in extraHeaders.items():
***************
*** 550,554 ****
headers.append("HTTP/1.0 %d Error" % code)
headers.append("Connection: close")
! headers.append("Content-Type: text/html")
headers.append("")
headers.append("")
--- 550,554 ----
headers.append("HTTP/1.0 %d Error" % code)
headers.append("Connection: close")
! headers.append('Content-Type: text/html; charset="utf-8"')
headers.append("")
headers.append("")
***************
*** 584,588 ****
headers.append('WWW-Authenticate: ' + authString)
headers.append('Connection: close')
! headers.append('Content-Type: text/html')
headers.append('')
headers.append('')
--- 584,588 ----
headers.append('WWW-Authenticate: ' + authString)
headers.append('Connection: close')
! headers.append('Content-Type: text/html; charset="utf-8"')
headers.append('')
headers.append('')
_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins