If the encoding is set to utf-8, then the NOAA files will contain utf-8
characters.

When a browser reads a file, it has to be told what encoding it uses. For
HTML pages, this is done by a meta header:

    <meta charset="UTF-8">

But, the NOAA files are not HTML files, they are just simple text files.
So, the browser has no way of knowing what encoding, if any, they might
use. It assumes ASCII.

That's why the encoding must be set to strict_ascii.

-tk

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

> Thomas, many thanks, appreciate your support.
>
> I am running latest weewx 3.9.1 with latest niculskin.
>
> Indeed, formatting is set to 'utf8', which I changed to 'strict_ascii' for
> testing. However, now
> - temperature does not show 'degree character' any more ('C' only) and
> - month 'Mar' appears as 'Mr' only.
>
> Please find enclosed my skin.conf for your reference.
>
> Copain
>
>
>
> 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