Tom, here are my settings :

root@meteopi:~# echo $LANG
fr_CH.UTF-8
root@meteopi:~# python3 -c "import 
locale;print(locale.setlocale(locale.LC_ALL))"
LC_CTYPE=fr_CH.UTF-8;LC_NUMERIC=C;LC_TIME=C;LC_COLLATE=C;LC_MONETARY=C;LC_MESSAGES=C;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C
root@meteopi:~# python3 -c "import 
locale;locale.setlocale(locale.LC_ALL,'');print(locale.setlocale(locale.LC_ALL))"
fr_CH.UTF-8



> Le 27 août 2023 à 21:44, Tom Keffer <[email protected]> a écrit :
> 
> I tried your test template (on my Mac) and it worked perfectly using both 
> HTML entities and UTF-8 encodings. The results are attached.
> 
> I'm grasping here, but it must have something to do with your environment. 
> What do you get for
> 
> echo $LANG
> python3 -c "import locale;print(locale.setlocale(locale.LC_ALL))"
> python3 -c "import 
> locale;locale.setlocale(locale.LC_ALL,'');print(locale.setlocale(locale.LC_ALL))"
> 
> -tk
> 
> On Sun, Aug 27, 2023 at 9:48 AM vince <[email protected] 
> <mailto:[email protected]>> wrote:
>> Fascinating.  I came up with a modified test template that prints out the 
>> units for everything in the extended schema, but my little one is sufficient 
>> to show the issue.
>> 
>> For me if encoding=html_entities then labels using group_concentration are 
>> garbled, but temperatures and radiation units and wind direction are ok.   
>> If I switch the skin to encoding=utf-8 then concentration, radiation, and 
>> anything with a degree symbol in it is garbled.
>> 
>> I've attached a modified .tmpl that displays the labels for all elements in 
>> the extended schema.  Maybe this helps.
>> 
>> 
>> 
>> On Sunday, August 27, 2023 at 8:43:33 AM UTC-7 [email protected] 
>> <mailto:[email protected]> wrote:
>> here is the result of your test.index.html in my system  :  
>> http://meteo-sciez.fr/weewx/tagssciez/test.html
>> 
>> the pmxxx units are correctly shown, but not the outTemp and radiation units 
>> !
>>  
>> 
>> -- 
>> 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] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/5de3914e-24e4-4592-adf8-6bcbf9625400n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/5de3914e-24e4-4592-adf8-6bcbf9625400n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/nW3U8DVMZyU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/CAPq0zECeEPkcBP7ChEV77OXaTxVkG6NuquCk%3Dg3o_4OAjCNRzw%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zECeEPkcBP7ChEV77OXaTxVkG6NuquCk%3Dg3o_4OAjCNRzw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> <test-utf8.html><test-entities.html>

-- 
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/D36839DD-7CE0-40FE-AFD0-B13E6DC66A8A%40gmail.com.

Reply via email to