comparison server_side/blog.py @ 175:764ca916e56e

browser side: fixed charset in public blog page
author Goffi <goffi@goffi.org>
date Mon, 14 Jan 2013 00:28:35 +0100
parents 9763dec220ed
children b9edfa058786
comparison
equal deleted inserted replaced
174:d97b0cba8b04 175:764ca916e56e
71 def render_html_blog(self, mblog_data, request, profile): 71 def render_html_blog(self, mblog_data, request, profile):
72 user = sanitizeHtml(profile).encode('utf-8') 72 user = sanitizeHtml(profile).encode('utf-8')
73 request.write(""" 73 request.write("""
74 <html> 74 <html>
75 <head> 75 <head>
76 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
76 <link rel="stylesheet" type="text/css" href="../css/blog.css" /> 77 <link rel="stylesheet" type="text/css" href="../css/blog.css" />
77 <title>%(user)s's microblog</title> 78 <title>%(user)s's microblog</title>
78 </head> 79 </head>
79 <body> 80 <body>
80 <div class='mblog_title'>%(user)s</div> 81 <div class='mblog_title'>%(user)s</div>