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

Ensure HTML is read as UTF-8 #114

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

jaw
Copy link
Contributor

@jaw jaw commented Oct 12, 2023

This has been tested on Windows where Python could detect HTML files as a windows codepage
rather than UTF-8.

As it seems Sphinx generates HTML in UTF-8, it should be safe to enforce it here.

@jaw
Copy link
Contributor Author

jaw commented Oct 12, 2023

Note that I'm not 100% sure Sphinx only generates UTF-8.
Maybe this needs to be a parameter in Doxysphinx rather than a hardcoded string.

In any case, this is what I did to make a particular build work on Windows.

Food for thought if nothing else.

@mb-emag
Copy link
Contributor

mb-emag commented Oct 12, 2023

Thanks for your contribution! 😃

Technically everything is ok, however we have to stick to some company guidelines before I'm able to merge your commit.

Could you please sign your commits (So our DCO check will approve), and also add yourself to the NOTICE.md file in the repo root?
See https://boschglobal.github.io/doxysphinx/CONTRIBUTE.html for details.

@jaw jaw force-pushed the python_read_text_utf8 branch 6 times, most recently from 112f9fc to 30fe129 Compare October 12, 2023 15:34
@jaw
Copy link
Contributor Author

jaw commented Oct 12, 2023

Done!

This has been tested on Windows where Python could
detect HTML files as a windows codepage
rather than UTF-8.

As it seems Sphinx generates HTML in UTF-8, it should
be safe to enforce it here.

Signed-off-by: Jonatan "jaw" Wallmander <[email protected]>
@mb-emag
Copy link
Contributor

mb-emag commented Oct 12, 2023

Nice thanks!! 👍

@mb-emag mb-emag merged commit acbb737 into boschglobal:main Oct 12, 2023
2 checks passed
@twodrops
Copy link
Collaborator

@jaw Thanks a lot for the great contribution.

Approved for merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants