Author: dimas
Date: 2005-08-25 04:13:08 -0500 (Thu, 25 Aug 2005)
New Revision: 7879
Modified:
trunk/gnue-navigator/src/UIgtk2.py
Log:
Setting charset encoding for html stream
Modified: trunk/gnue-navigator/src/UIgtk2.py
===================================================================
--- trunk/gnue-navigator/src/UIgtk2.py 2005-08-24 13:48:46 UTC (rev 7878)
+++ trunk/gnue-navigator/src/UIgtk2.py 2005-08-25 09:13:08 UTC (rev 7879)
@@ -431,6 +431,8 @@
@param contenttype: type of the contents, e.g. 'text/html'
@param stream: string with the actual data
"""
+ stream = '''<html><head><meta http-equiv="Content-Type"
content="text/html; charset=utf8">
+ </head><body>%s</body></html>''' % stream
self.document.clear ()
self.document.open_stream (contenttype)
_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue