Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid charset in HTML pages inside documentation in CHM format #62936

Closed
grv87 mannequin opened this issue Aug 14, 2013 · 2 comments
Closed

Invalid charset in HTML pages inside documentation in CHM format #62936

grv87 mannequin opened this issue Aug 14, 2013 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@grv87
Copy link
Mannequin

grv87 mannequin commented Aug 14, 2013

BPO 18736
Nosy @birkenfeld, @ezio-melotti, @serhiy-storchaka, @grv87

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2013-10-13.18:08:24.471>
created_at = <Date 2013-08-14.11:59:06.175>
labels = ['type-bug', 'invalid', 'docs']
title = 'Invalid charset in HTML pages inside documentation in CHM format'
updated_at = <Date 2013-10-13.18:08:24.470>
user = 'https://github.com/grv87'

bugs.python.org fields:

activity = <Date 2013-10-13.18:08:24.470>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2013-10-13.18:08:24.471>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2013-08-14.11:59:06.175>
creator = 'grv87'
dependencies = []
files = []
hgrepos = []
issue_num = 18736
keywords = []
message_count = 2.0
messages = ['195136', '195415']
nosy_count = 5.0
nosy_names = ['georg.brandl', 'ezio.melotti', 'docs@python', 'serhiy.storchaka', 'grv87']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue18736'
versions = ['Python 3.3']

@grv87
Copy link
Mannequin Author

grv87 mannequin commented Aug 14, 2013

HTML pages inside CHM documentation use the following tag to set applied character set:
<meta http-equiv="Content-Type" content="text/html; charset=iso8859_1" />

iso8859_1 is neither valid character set according to IANA registry nor is recognized by most browsers (I've checked IE, Firefox and Opera).

This isn't notable for text in English. But, in Python Standard Library in section 4.7.1 String Methods there is a documentation for str.casefold(). This paragraph contains German letter ß.
Without defined character set this letter can be displayed wrongly, depending on user's regional settings. In my Russian I see in CHM Я. Firefox displays it as .

Fix of charset to ISO-8859-1 could resolve the problem.

P.S. Use of UTF-8 may be more convenient for preventing future errors.

@grv87 grv87 mannequin assigned docspython Aug 14, 2013
@grv87 grv87 mannequin added the docs Documentation in the Doc dir label Aug 14, 2013
@ezio-melotti
Copy link
Member

This is a problem with Sphinx and should be reported upstream.
These encondings are defined in the htmlhelp builder and they are recognized by Python, but indeed they shouldn't end up in the meta tag.

@ezio-melotti ezio-melotti added the type-bug An unexpected behavior, bug, or error label Aug 16, 2013
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants