Thanks Tom. I appreciate all the help you have given me!

On Tuesday, November 22, 2016 at 6:58:20 PM UTC-5, Tom Keffer wrote:
>
> The directive "strict_ascii" means just that: only characters that can be 
> represented in the 7 bits, or 127 characters, of the ascii code set will be 
> printed. This does not include the degree sign.
>
> If you truly want a degree symbol, you will have to choose an encoding. 
> While there are dozens out there, weewx offers only two: 'html_entities', 
> or 'utf8'. 
>
> The former, html_entities, will cause weewx to emit
>
> °
>
>
> which all browsers will recognize as a degree sign. Most text editors will 
> not.
>
> The latter, utf8, will use multibyte encoding and weewx will emit two 
> bytes
>
> 0xC2 0xB0
>
>
> which most browsers and text editors will print as a degree sign. But, not 
> all. 
>
> I would suggest using utf8 and see if that works for you.
>
> I know code sets can seem terribly confusing and that's because they are. 
> There are countless different ways of jamming all the characters we 
> commonly use in a handful of bytes. Fortunately, these days, the world has 
> pretty much settled on UTF8.
>
> -tk
>
>
>
> On Tue, Nov 22, 2016 at 3:44 PM, Jim W. <wolff....@gmail.com <javascript:>
> > wrote:
>
>> Sorry.. Rpi3b running latest Raspbian. Installed from DEB package. I have 
>> modified the Standard skin.conf file with:
>>
>>
>> [[[temp.txt]]]
>>             # Report that makes current outTemp available to other program
>>             encoding = strict_ascii
>>             template = temp.txt.tmpl
>>
>> and the temp.txt.tmpl file looks like:
>>
>>         $current.dateTime
>>         $current.outTemp.format("%.1f")
>>         $trend.outTemp
>>  
>> and the txt file generated looks like:
>>
>>
>> 11/22/2016 06:30:00 PM
>> 37.6F
>> -4.2F
>>
>> Thanks for any insight!
>>
>>  
>>
>>
>>
>>
>> On Tuesday, November 22, 2016 at 5:40:47 PM UTC-5, Tom Keffer wrote:
>>>
>>> We're going to need a little more information. Is this a stock weewx 
>>> installation? Or, have you made modifications to the skins or to skin.conf?
>>>
>>> What is the platform?
>>>
>>> -tk
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Nov 22, 2016 at 2:30 PM, Jim W. <wolff....@gmail.com> wrote:
>>>
>>>> At the risk of inciting the fury of AM...  I have a question regarding 
>>>> the degree symbol. I'm using the tag $current.outTemp and 
>>>> $current.outTemp.format("%.1f")  and both produce the expected result 
>>>> EXCEPT without the little degree symbol? I have read, re-read... and 
>>>> re-re-read the Customization guide but can't figure it out?
>>>> Thanks for any insight!
>>>>
>>>> Ps... If this question causes an apoplectic reaction please hit the 
>>>> delete key... take a deep breath and think of butterflies! 
>>>>
>>>> -- 
>>>> 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 weewx-user+...@googlegroups.com.
>>>> 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 weewx-user+...@googlegroups.com <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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to