Those are not Unicode characters, they are HTML entities encoding Unicode characters.
If you want a special character, such as a degree sign, which cannot be encoded in 7 bits, you need to encode it somehow. There are two practical choices: HTML entities, or UTF-8. WeeWX allows you to go either way. See the section *File generation options <http://weewx.com/docs/customizing.htm#File_generation_options>* in the *Customizing Guide*. If you are not familiar with encoding, how it works, and why it is needed, I recommend this guide *The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets <http://www.joelonsoftware.com/articles/Unicode.html>.* It is now nearly 15 years old, but still very relevant. -tk On Mon, Feb 26, 2018 at 8:17 AM, Paul Miller <[email protected]> wrote: > I'm using WeeWX to produce json reports of the data collected from a > Vantage Pro2. I'm having difficulty finding an answer in the docs to this > question; is there a way to remove the unicode symbols that WeeWX injects > for the degree symbols and such? > > > - title: "Current Values", > - location: "Washington, D.C.", > - time: "02/26/2018 10:30:00 AM", > - lat: "38*°* 54.43' N", > - lon: "077*°* 02.21' E", > - alt: "0 feet", > - hardware: "Vantage Pro2", > - uptime: "2 days, 18 hours, 35 minutes", > - serverUptime: "3 days, 22 hours, 56 minutes", > - weewxVersion: "3.8.0", > - stats: > { > - current: > { > - outTemp: "68.1*°*F", > - windchill: "68.1*°*F", > - heatIndex: "68.1*°*F", > - dewpoint: "49.3*°*F", > > -- > 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.
