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

Fixed UTF-8 with BOM encoding support #6923

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

kamilkrzyskow
Copy link
Collaborator

@kamilkrzyskow kamilkrzyskow commented Mar 17, 2024

PR for #6917

Changed utf-8 to utf-8-sig in all instanced where a file is read, that the user could've created with an external editor.
Kept utf-8 for reading files that are generated or already provided by the theme.
I decided to not add comments to each changed line, as supporting BOM isn't a priority, and if someone forgets using -sig it won't be the end of the world.

Tested by serving mkdocs-material documentation with this Community version of the codebase, and there was no crash.
Therefore the privacy plugin wasn't tested, but those changed got tested in Insiders.
https://github.com/squidfunk/mkdocs-material-insiders/pull/82

@squidfunk
Copy link
Owner

Awesome, as always, thanks for your work and time ❤️

@squidfunk squidfunk merged commit 022f14c into squidfunk:master Mar 17, 2024
4 checks passed
@alexvoss
Copy link
Sponsor Collaborator

You guys are on fire! Updating now so I can holler should anything break.

@squidfunk
Copy link
Owner

@kamilkrzyskow is on fire. I'm only the click-merge-man here ✌️

@kamilkrzyskow
Copy link
Collaborator Author

It's nice to have such small PRs, where I can be 99% sure I wouldn't do yet another force push with some second guess change 🤣
Thanks for the fast 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.

None yet

3 participants