id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
10340	Specify character encoding in pages returned by wiki.getPageHTML	nashville_parent	osimons	No character encoding is specified in the HTML returned by {{{wiki.getPageHTML}}} / {{{wiki.getPageHTMLVersion}}}.\r\n\r\nBy default, Trac appears to use '''UTF-8''' encoding throughout (see page template [http://trac.edgewall.org/browser/trunk/trac/templates/layout.html here]), however this is not necessarily the encoding which is used by the web-browser viewing the generated file. For example, my copy of Internet Explorer attempts to render it as '''Western European (Windows)''' when encoding auto-select is enabled.\r\n\r\nTo resolve this, it appears that we can simply change [source:/xmlrpcplugin/trunk/tracrpc/wiki.py wiki.py] line 115 (as at r11148) from -\r\n\r\n{{{\r\n#!python\r\nreturn '<html><body>%s</body></html>' % html\r\n}}}\r\n\r\nto:\r\n\r\n{{{\r\n#!python\r\nreturn '<html><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><body>%s</body></html>' % html\r\n}}}	defect	closed	normal	XmlRpcPlugin	normal	fixed	encoding, utf8, utf-8	olemis	1.0
