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

Non-breaking spaces being encoded as   even with encodeEntities: 'utf8' #1122

Closed
ehamberg opened this issue Jan 2, 2024 · 1 comment

Comments

@ehamberg
Copy link

ehamberg commented Jan 2, 2024

This might very well be me misunderstanding something, but I expected a non-breaking space (U+00a0) to not be encoded as   when specifying encodeEntities: 'utf8'. Is this intended behaviour?

@ehamberg ehamberg changed the title encodeEntities: 'utf8' leads to non-breaking spaces being encoded as   Non-breaking spaces being encoded as   even with encodeEntities: 'utf8' Jan 2, 2024
@fb55
Copy link
Member

fb55 commented Jan 4, 2024

utf8 stops characters from outside the ASCII range to be encoded as well. I agree that the wording is not great, happy to accept PRs.

@fb55 fb55 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants