Hello, Gart

If you look in the skin configuration file, skin.conf, you'll see a section
that looks like this:

    [[SummaryByMonth]]
        # Reports that summarize "by month"
        [[[NOAA_month]]]
            encoding = strict_ascii
            template = NOAA/NOAA-YYYY-MM.txt.tmpl

    [[SummaryByYear]]
        # Reports that summarize "by year"
        [[[NOAA_year]]]
            encoding = strict_ascii
            template = NOAA/NOAA-YYYY.txt.tmpl

Change the highlighted areas to 'utf8'. This will cause the file generation
engine to emit UTF8 files, instead of strict ascii.

NB: the created file is a text file (type ".txt") so, unlike an HTML file,
it includes *no information on the encoding it uses*. Nevertheless, most
browsers will figure out that there are UTF8 characters included in the
file and do the right thing. But, this is not guaranteed.

A more robust solution would be to change the file to an HTML file.

-tk

On Fri, Jun 16, 2017 at 10:10 AM, Gert Andersen <[email protected]>
wrote:

> Hi
>
> I'm new to weeWX and I have a question regarding Danish characters.
>
> In the NOAA report I have:
>
> Vester Sømarken, Bornholm
>
> it should be
>
> Vester Sømarken, Bornholm.
>
>
> I have included:
>
> #encoding UTF-8
>
> in the NOAA templates.
>
>
> Any suggestions?
>
>
> Link:
>
> http://vsvejr.dk/weeWX/NOAA/NOAA-2017-06.txt
>
>
> Thanks
>
>
> Rgds
>
> Gert
>
> --
> 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