-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
[BasicUI] Fix character encoding of returned page #2746
Conversation
Fix openhab#2681 Concerns only the settings page and the page listing all sitemaps Signed-off-by: Laurent Garnier <lg.hc@free.fr>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see it fixed. 👍
Maybe also update the ManifestServlet
similarly?
Oh yes |
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Might also be an idea to check other add-ons for similar issues.
For the full explanation, |
Where does charset=ISO-8959-1/Latin-1 come from? Can that place be enforced to send UTF-8 instead? Then there will be no need to set explicitly UTF-8 on many places. |
After the merge, I will cherry-pick this fix in 4.2.x. |
I just explained it in my previous message. |
I do not know where is discussed what to backport, but I propose also openhab/openhab-core#4312 for including in 4.2.x. |
This is usually discussed inside the PR, and in case of your linked PR it seems it is already backported. |
It was back-ported and should be available in 4.2.1. |
Ah, it is in https://github.com/kaikreuzer/openhab-core/commits/4.2.x/ . I have not found it at https://github.com/openhab/openhab-core/commits/4.2.x/ . |
You just have it included in the release notes of 4.2.1: |
I have done a quick check in addons repository (30 files) and most of the time a character encoding is set before calling |
Thanks for noticing! |
@kaikreuzer : any chance that you review this small PR fixing an annoying bug ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing - thanks!
^^ |
Fix #2681 Concerns only the settings page and the page listing all sitemaps Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Backported to branch 4.2.x. |
Fix #2681
Concerns only the settings page and the page listing all sitemaps
Signed-off-by: Laurent Garnier lg.hc@free.fr