Degree Sign @Celsius looks strange (ASCII signs...)

22 views
Skip to first unread message

Norbert JORDAN

unread,
Jul 2, 2014, 6:02:31 AM7/2/14
to py...@googlegroups.com
Hi, I did update the template for 1hours.....all looks nice but I see for the IN-Temp strange ascii signs instead of the real " ° "....
Any idea what I did wrong, simply copied the temp_out line so I have a high chance that it looks fine...but didn't....hm....

<td>#temp_in "%.1f<small>�C</small>" "-"#</td>
<td>#hum_in "%d<small>%%</small>"#</td>
<td>#temp_out "%.1f<small>�C</small>" "-"#</td>
<td>#hum_out "%d<small>%%</small>"#</td>


And it looks like this...

23.7�C

Thanks

Jim Easterbrook

unread,
Jul 2, 2014, 6:47:51 AM7/2/14
to py...@googlegroups.com
When you copied it your editor changed the character encoding. For HTML
output you should use the "HTML entity" for the degree symbol &deg;
http://www.w3schools.com/html/html_entities.asp
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>

Norbert JORDAN

unread,
Jul 2, 2014, 3:15:39 PM7/2/14
to py...@googlegroups.com
Jim, thanks works great....i did copy via nano...but &deg anyhow looks more save to not run into such troubles....

Not sure if you are also the "man" for asking one detail about 1hours template....I increased easily the list by changing loop from 12 to e.g. 36....of course its not an hour anymore...but is there a simple way to also extend the interval so that the list still has 36 lines but the waiting time is e.g. not 5mins but 15mins...so 3 times longer.

Thanks,
Norbert

Jim Easterbrook

unread,
Jul 3, 2014, 3:09:14 AM7/3/14
to py...@googlegroups.com
Put a #jump 2# in to skip two records. (Or #jump -2# if you are going
backwards.) Or change the #jump 1# at the end of the loop to #jump 3#.
Reply all
Reply to author
Forward
0 new messages