-
Notifications
You must be signed in to change notification settings - Fork 0
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
Apostrophes in Weather Alert info #97
Comments
Thank you for reporting! Can you attach the |
I'm not getting any weather alerts currently, so will the JSON still help? I've had the screenshot saved for a while. |
Don't worry, I'll try to reproduce by myself. |
Tested with various Unicode characters in alert description (writing the characters directly in the
One can thus expect that the content of the state file is wrongly encoded when the problem happens. Can come from a wrong deserialization of the OpenWeather API response or a wrong encoding while writing the state file. |
I failed to reproduce up to now. Please post the location and |
Great! Reproduced on my device. I'll investigate after work. Thank you! |
From the logs I read the URL requested. Then I checked that the response headers says that the encoding used is UTF-8 but the payload is wrongly encoded since terminal support UTF-8 and display of response payload is wrong:
Requesting a specific charset is a no-op:
And finally, on OpenWeather website itself: Conclusion: Not a Taranis bug! More an OpenWeather API or Met Office bug. |
Although not a Taranis issue then, would it be worth adding a workaround to substitute "â€tm" for an apostrophe anyway? And what about the last line of the alert being cut off? Does that need raising as a separate issue? Thanks. |
My point of view is that we'd better first send a bug report upstream (OpenWeather API) and see whether they work on it or not. Open for discussion.
Good catch! There's a bug in the computation of the content height of alert description; It's not possible to scroll to read full content... Tracked with #100. |
Apostrophes in Weather Alert info cause an issue, displayig as: â€tm
See example below:
The text was updated successfully, but these errors were encountered: