Hi
I did some testing now and my findings are:
- NOAA reports are generated correctly at the Raspberry
- NOAA reports are transferred correctly to my external server
- I can download them to my desktop and I can view them correctly with Opera
- I can't view them correctly with Opera when they are located at the
server:
http://vsvejr.dk/weeWX/NOAA/NOAA-2017-06.txt
<http://vsvejr.dk/weeWX/NOAA/NOAA-2017-06.txt>
I have attached the file I have downloaded to my desktop.
Any ideas where to look?
Rgds
Gert
On Saturday, June 17, 2017 at 9:05:55 AM UTC+2, Gert Andersen wrote:
>
> Hi
> Thanks for the answers.
>
> I have changed to utf8, both overall and at each report. It helped, now
> the reports are generated correctly. The problem is now, when I see the
> reports with a browser, the characters are not printed correctly.
>
> I have tried Opera, Chrome, Firefox and Edge, same result. So it's a
> browser problem now, as Tom mentioned, and I'll try to see how I can change
> this.
>
> Thanks again for great support.
>
> Rgds
> Gert
>
>
> On Saturday, June 17, 2017 at 8:19:03 AM UTC+2, Andrew Milner wrote:
>>
>> try encoding = utf8 instead of encoding = html_entities at the higher
>> level.
>>
>> On Saturday, 17 June 2017 08:44:09 UTC+3, Gert Andersen wrote:
>>>
>>> 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]>
>>>> 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.
MONTHLY CLIMATOLOGICAL SUMMARY for Jun 2017
NAME: Vester Sømarken, Bornholm
ELEV: 11 meter LAT: 55-00.52 N LONG: 014-57.61 Ø
TEMPERATURE (°C), RAIN (mm), WIND SPEED (m/s)
HEAT COOL AVG
MEAN DEG DEG WIND
DOM
DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED HIGH
TIME DIR
---------------------------------------------------------------------------------------
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15 16.3 18.8 16:25 13.2 23:57 2.0 0.0 0.0 0.0 1.3
16:10 255
16 15.0 18.8 14:14 13.1 00:17 3.4 0.0 11.8 0.3 7.6
10:24 287
17 13.2 15.3 08:34 12.6 03:16 5.2 0.0 0.0 0.2 4.0
00:37 297
18
19
20
21
22
23
24
25
26
27
28
29
30
---------------------------------------------------------------------------------------
14.8 18.8 15 12.6 17 10.6 0.0 11.8 0.2 7.6
16 289