I notice the Seasons index.html.tmpl does not have a #encoding directive (though the other Seasons .html.tmpl files do). Have you tried adding a #encoding directive à la:
#errorCatcher Echo #encoding UTF-8 <!DOCTYPE html> Gary On Friday, 25 August 2023 at 07:19:12 UTC+10 vince wrote: > Well I can't explain it at all. I appended the same .tmpl line at the > bottom of index.html.tmpl for the Seasons skin (trusting Tom gets this > stuff correctly) and I still see funny encoding in Safari + Chrome (mac) > and in Chrome (iphone). I can only guess it has something to do with the > locale or i18n settings on the pi4 that weewx is running on, but I'm just > guessing completely at this point. > > On Thursday, August 24, 2023 at 12:54:21 PM UTC-7 Karen K wrote: > >> Unfortunately the greek my character and the cubic symbol are not >> US-ASCII. So they have the 8th bit set. There are different methods to do >> that. The older one is ISO 8859, where one byte is always one character. >> The newer one is UTF-8 where one character can be 1, 2 or even more bytes. >> So if you have an UTF-8 character, containing of 2 bytes interpreted as ISO >> 8859, you see 2 characters instead of the one you want to see. >> >> So the question is: What does the browser think about the character set? >> And what character set is used for Cheetah? >> >> See the first line of the templates *.html.tmpl. There is a line >> beginning with #encoding followed by the name of a character set. That name >> must match the character set you used to save the file. >> >> Then there may be a line <meta charset="UTF-8" /> (or ISO-8859-1 instead >> of UTF-8). >> >> Then, in skin.conf there may be lines "encoding = ...". What do they say? >> >> Make sure, all the encoding directives match your file's encoding. >> >> vince schrieb am Donnerstag, 24. August 2023 um 21:29:46 UTC+2: >> >>> I have absolutely no idea what you just said. Sorry - US ASCII person >>> here :-) >>> >>> View source shows >>> AQI: 56 (14.6 µg/m³) >>> >>> and https://www.w3schools.com/charsets/ref_html_8859.asp matches up >>> (circumflex accent and micro symbol) but I have no idea what to do about it. >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4d289060-72aa-456c-a9d5-11385e6bb73bn%40googlegroups.com.
