龙卷风Web应用程序中的Unicode字符串

| 如何在龙卷风视图或模板中使用unicode字符串? 我插入模板
<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />
在视图中#-编码:utf-8- 输出是????     
已邀请:
准备好unicode字符串后,请求应结束
self.render(\"template.html\", aString=aUnicodeString)
这将呈现文件“ template.html \”,将aString变量设置为aUnicodeString。 template.html看起来像这样:
<html>
    <head>
        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>
    </head>
    <body>
        {{aString}}
    </body>
</html>
也可以在Tornado服务器中内嵌HTML。
self.render(\'<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /></head><body>{{aString}}</body></html>\', aString=aUnicodeString)
有关模板的更多信息,请参见: Tornado Web服务器文档     

要回复问题请先登录注册