Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
erp5
Commits
9a58e4df
Commit
9a58e4df
authored
Sep 30, 2021
by
Aurel
Committed by
Jérome Perrin
Jan 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zope4 add charset=utf-8 in header
parent
e0fd1cd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
product/ERP5OOo/tests/testFormPrintoutAsODG.py
product/ERP5OOo/tests/testFormPrintoutAsODG.py
+2
-1
product/ERP5OOo/tests/testFormPrintoutAsODT.py
product/ERP5OOo/tests/testFormPrintoutAsODT.py
+2
-1
No files found.
product/ERP5OOo/tests/testFormPrintoutAsODG.py
View file @
9a58e4df
...
...
@@ -201,7 +201,8 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
content_xml
=
builder
.
extract
(
"content.xml"
)
self
.
assertTrue
(
content_xml
.
find
(
"call!"
)
>
0
)
# when just call FormPrintout, it does not change content-type
self
.
assertEqual
(
request
.
RESPONSE
.
getHeader
(
'content-type'
),
'text/html'
)
# Zope4 add charset=utf-8
self
.
assertTrue
(
'text/html'
in
request
.
RESPONSE
.
getHeader
(
'content-type'
))
self
.
_validate
(
odf_document
)
# 5. Normal case: utf-8 string
...
...
product/ERP5OOo/tests/testFormPrintoutAsODT.py
View file @
9a58e4df
...
...
@@ -199,7 +199,8 @@ class TestFormPrintoutAsODT(TestFormPrintoutMixin):
builder
=
OOoBuilder
(
odf_document
)
content_xml
=
builder
.
extract
(
"content.xml"
)
self
.
assertTrue
(
content_xml
.
find
(
"call!"
)
>
0
)
self
.
assertEqual
(
request
.
RESPONSE
.
getHeader
(
'content-type'
),
'text/html'
)
# Zope4 add charset=utf-8
self
.
assertTrue
(
'text/html'
in
request
.
RESPONSE
.
getHeader
(
'content-type'
))
self
.
_validate
(
odf_document
)
# 5. Normal case: utf-8 string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment