Sorry. The test should be run as a Python program.

You only get "Mr" instead of "Mär" for the same reason you don't get a
degree sign: the character "ä" cannot be expressed in ASCII. So, it is
ignored.

If you really want the character in there, then the document must be
encoded in UTF-8, not ASCII. You will have to create HTML pages with the
UTF-8 meta tag so browsers will know it is encoded in UTF-8.

The only other option is to tell your browser that the text file is in
UTF-8 every time you open it.

-tk

On Tue, Mar 12, 2019 at 11:46 AM Copain <[email protected]> wrote:

> Thanks, Thomas, but unfortunately you got me on the wrong foot … where
> exactly would I have to test these commands? Maybe in a weewx report?
>
> I presume, in my de_CH.utf-8 locale, the result would also be the same.
> That would match the attached NOAA text report, created with 'utf8' setting
> in skin.conf.
>
> However it still does not quite explain yet, why with 'strict_ascii'
> setting, month 'Mär' results in 'Mr' without the 'a' in the middle at all.
> Even in an English locale, there is no month 'Mr' ...
>
>
>
> Am Montag, 11. März 2019 17:15:21 UTC+1 schrieb Copain:
>
>> I am running weewx on RPi 3B with dietpi and German locale.
>>
>> In NOAA reports I noticed some strange formats for
>> - temperature (°C) and
>> - months ('Mär' for 'Mar')
>>
>> Some variables affected are '$unit.label.outTemp.strip()',
>> '$year.outTemp.maxtime.format($M,$NODAY)',
>> '$year.outTemp.mintime.format($M,$NODAY)',
>> '$year.rain.maxsumtime.format($M,$NODAY)' and
>> '$year.wind.maxtime.format($M,$NODAY)'.
>>
>> Where / how could those be changed in oder to show propper formatting?
>>
>> Thanks.
>>
>> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to