Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
117955fb
Commit
117955fb
authored
Nov 08, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'latin1' -> 'iso-8859-15'
parent
2f9bf4bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
lib/python/ZPublisher/Converters.py
lib/python/ZPublisher/Converters.py
+1
-1
lib/python/ZPublisher/HTTPRequest.py
lib/python/ZPublisher/HTTPRequest.py
+1
-1
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+1
-1
No files found.
lib/python/ZPublisher/Converters.py
View file @
117955fb
...
...
@@ -20,7 +20,7 @@ from cgi import escape
def
field2string
(
v
):
if
hasattr
(
v
,
'read'
):
return
v
.
read
()
elif
isinstance
(
v
,
UnicodeType
)
:
return
v
.
encode
(
'
latin1
'
)
return
v
.
encode
(
'
iso-8859-15
'
)
else
:
return
str
(
v
)
...
...
lib/python/ZPublisher/HTTPRequest.py
View file @
117955fb
...
...
@@ -522,7 +522,7 @@ class HTTPRequest(BaseRequest):
if
hasattr
(
converter
,
'convert_unicode'
):
item
=
converter
.
convert_unicode
(
item
)
else
:
item
=
converter
(
item
.
encode
(
'
latin1
'
))
item
=
converter
(
item
.
encode
(
'
iso-8859-15
'
))
else
:
item
=
converter
(
item
)
...
...
lib/python/ZPublisher/HTTPResponse.py
View file @
117955fb
...
...
@@ -444,7 +444,7 @@ class HTTPResponse(BaseResponse):
encoding
=
match
.
group
(
1
)
return
body
.
encode
(
encoding
)
# Use the default character encoding
return
body
.
encode
(
'
latin1
'
,
'replace'
)
return
body
.
encode
(
'
iso-8859-15
'
,
'replace'
)
def
setBase
(
self
,
base
):
"""Set the base URL for the returned document.
...
...
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