Hi Tom Thank you for looking at this "Danish" problem
In my skin.conf I have: *encoding = html_entities* * [[SummaryByMonth]]* * # Reports that summarize "by month"* * [[[NOAA_month]]]* * encoding = utf8* * template = NOAA/NOAA-YYYY-MM.txt.tmpl* * [[SummaryByYear]]* * # Reports that summarize "by year"* * [[[NOAA_year]]]* * encoding = utf8* * template = NOAA/NOAA-YYYY.txt.tmpl* I have already tried utf8 in skin.conf, so there must be another explanation. The reports are generated at the Raspberry, so can there be a problem there with installed language or? Thanks Gert On Saturday, June 17, 2017 at 5:10:47 AM UTC+2, Tom Keffer wrote: > > 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] > <javascript:>> 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] <javascript:>. >> 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.
