[FIX] report_webkit: fixed UTF-8 encoding in debug mode too
bzr revid: odo@openerp.com-20110430015646-j7y9fyv31j6euce3
This commit is contained in:
parent
7c5b94ec22
commit
a76e08077a
|
@ -9,6 +9,7 @@
|
|||
<record id="ir_header_webkit_basesample0" model="ir.header_webkit">
|
||||
<field name="footer_html"><![CDATA[<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
|
||||
<script>
|
||||
function subst() {
|
||||
var vars={};
|
||||
|
@ -34,6 +35,7 @@
|
|||
<field eval=""""A4"""" name="format"/>
|
||||
<field name="html"><![CDATA[<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
|
||||
<script>
|
||||
function subst() {
|
||||
var vars={};
|
||||
|
|
|
@ -42,6 +42,7 @@ import pooler
|
|||
from report_helper import WebKitHelper
|
||||
from report.report_sxw import *
|
||||
import addons
|
||||
import tools
|
||||
from tools.translate import _
|
||||
from osv.osv import except_osv
|
||||
|
||||
|
@ -264,6 +265,7 @@ class WebKitParser(report_sxw):
|
|||
header = u"""
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
|
||||
<style type="text/css">
|
||||
${css}
|
||||
</style>
|
||||
|
@ -341,7 +343,7 @@ class WebKitParser(report_sxw):
|
|||
time=time,
|
||||
helper=helper,
|
||||
css=css,
|
||||
_debug=html.decode(),
|
||||
_debug=tools.ustr(html),
|
||||
formatLang=self.formatLang,
|
||||
setLang=self.setLang,
|
||||
_=self.translate_call,
|
||||
|
|
Loading…
Reference in New Issue