summaryrefslogtreecommitdiff
path: root/doc/reference/testing.rst
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-12-03 09:29:16 +0000
committerNicolas Lempereur <nle@odoo.com>2019-12-03 12:41:39 +0000
commit7c4628b1f4853494fd4bb3bf00cd031d12bcd945 (patch)
tree85145672fe8da0611afbc46b721aeeccfc6220d7 /doc/reference/testing.rst
parent9830d924e9b68ca79cd2fa81ee890db3e300c50b (diff)
[FIX] base: render with page-break => ok encoding
If we have eg. a report with a page break (eg. `Print On New Page` enabled on a financial report section) the encoding is broken. The reason is that lxml.html fragments_fromstring function accepts text string (OK in unicode) or bytestring => the encoding will be guessed (by chardet library) if guess_charset argument is set to true. So since we do not pass guess_charset option, the encoding is not recognized. In this changeset, we give a text string to the fragments_fromstring function since it seems that all our input should be in UTF-8. note: lxml.html itself uses html5lib.HTMLParser parseFragment that takes a charset argument, but there is no interface through fragments_fromstring to specify the charset. opw-2146715 closes #41255 closes odoo/odoo#41289 X-original-commit: 1d3d517aad08887970e4ba2d9290e260faacae2d Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'doc/reference/testing.rst')
0 files changed, 0 insertions, 0 deletions