Skip to content
Browse files

Moar UTF-8, less meta.

  • Loading branch information...
1 parent 9cfae88 commit 5138fdc5b83a0afc6291cc33bb69fb8236602243 @wmcbrine committed Feb 22, 2010
View
6 httpserver.py
@@ -240,7 +240,7 @@ def root_container(self):
def infopage(self):
self.send_response(200)
- self.send_header('Content-type', 'text/html')
+ self.send_header('Content-type', 'text/html; charset=utf-8')
self.end_headers()
t = Template(file=os.path.join(SCRIPTDIR, 'templates',
'info_page.tmpl'))
@@ -283,7 +283,7 @@ def unsupported(self, query):
for key, value in query.items()])
text = BASE_HTML % message
self.send_response(404)
- self.send_header('Content-Type', 'text/html')
+ self.send_header('Content-Type', 'text/html; charset=utf-8')
self.send_header('Content-Length', len(text))
self.end_headers()
self.wfile.write(text)
@@ -294,7 +294,7 @@ def redir(self, message, seconds=2):
message += RELOAD % (escape(url), seconds)
text = BASE_HTML % message
self.send_response(200)
- self.send_header('Content-Type', 'text/html')
+ self.send_header('Content-Type', 'text/html; charset=utf-8')
self.send_header('Content-Length', len(text))
if url:
self.send_header('Refresh', '%d; url=%s' % (seconds, url))
View
2 plugins/settings/settings.py
@@ -75,7 +75,7 @@ def Settings(self, handler, query):
t.tivos_known = buildhelp.getknown('tivos')
t.help_list = buildhelp.gethelp()
handler.send_response(200)
- handler.send_header('Content-Type', 'text/html')
+ handler.send_header('Content-Type', 'text/html; charset=utf-8')
handler.end_headers()
handler.wfile.write(t)
View
1 plugins/settings/templates/settings.tmpl
@@ -2,7 +2,6 @@
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>pyTivo Web Configuration</title>
<link rel="stylesheet" href="/main.css" type="text/css">
<link rel="stylesheet" href="/plugins/settings/settings.css" type="text/css">
View
1 plugins/togo/templates/npl.tmpl
@@ -2,7 +2,6 @@
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
-<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>pyTivo - ToGo</title>
<link rel="stylesheet" type="text/css" href="/main.css">
</head>
View
2 plugins/togo/togo.py
@@ -167,7 +167,7 @@ def NPL(self, handler, query):
t.FirstAnchor = quote(FirstAnchor)
t.shows_per_page = shows_per_page
handler.send_response(200)
- handler.send_header('Content-Type', 'text/html')
+ handler.send_header('Content-Type', 'text/html; charset=utf-8')
handler.end_headers()
handler.wfile.write(t)
View
1 templates/info_page.tmpl
@@ -2,7 +2,6 @@
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>pyTivo</title>
<link rel="stylesheet" type="text/css" href="/main.css">
</head>

0 comments on commit 5138fdc

Please sign in to comment.
Something went wrong with that request. Please try again.