What a SUPER paper Tom - just what I could have done with when when in my prime and making international systems for use from USA to Russia and all points inbetween ..... now it's a case of proving the old dog is capable of learning new tricks.... that is a beautifully crafted paper though with just the right levels of seriousness and light-heartedness.
Not had such an informed read for a long time. Thanks for the link - now bookmarked for posterity!! On Wednesday, 23 November 2016 03:55:16 UTC+2, Tom Keffer wrote: > About a decade ago, I read this paper *The Absolute Minimum Every > Software Developer Absolutely, Positively Must Know About Unicode and > Character Sets <http://www.joelonsoftware.com/articles/Unicode.html>.* It > does a great job of explaining code sets. Even if you're not a developer, > it explains why some email comes out as gobbledygook. Highly recommended. > > -tk > > On Tue, Nov 22, 2016 at 5:39 PM, Jim W. <wolff....@gmail.com <javascript:> > > wrote: > >> 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> 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. >>>> 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.