среда, 25 января 2017 г., 21:43:49 UTC+3 пользователь Tom Keffer написал: > > ? > > What result did you get for sys.getdefaultencoding()? >
python -c "import sys; print sys.getdefaultencoding()" ascii > > So, the original skin worked? What happened when you put a single UTF-8 > character in it? > original works i see more - it works with my skin.conf (there are cyrilic symbols) > > Adding setdefaultencoding('UTF8') did not help? > No - same problems in log > > -tk > > On Wed, Jan 25, 2017 at 10:39 AM, 'pterodaktil' via weewx-user < > weewx...@googlegroups.com <javascript:>> wrote: > >> i tried all All expet original skin did not help >> So i will make change based on my config untill find problem. >> Thanks. >> >> среда, 25 января 2017 г., 21:06:50 UTC+3 пользователь Tom Keffer написал: >>> >>> Unfortunately, I cannot replicate your problem. I used your >>> index.html.tmpl file, and your skin.conf file, and things worked fine. >>> >>> For Cheetah to recognize that a template uses UTF-8, it must have an >>> 'encoding' directive. You have one, but for some reason it is not >>> recognizing it. >>> Why, I don't know. >>> >>> >>> Suggestions: >>> >>> 1. Try eliminating the blank line at the top of index.html.tmpl between >>> "#encoding UTF-8" and the "<!DOCTYPE..." directive. I doubt this will do >>> anything, but we're getting desperate. >>> >>> 2. Start with the skin.conf and index.html.tmpl file that come with >>> weewx and gradually add things until you have a problem. >>> >>> 3. Check what default encoding your python installation uses. You can do >>> this by running the line >>> >>> python -c "import sys; print sys.getdefaultencoding()" >>> >>> >>> Mine says 'ascii', and yours should as well. >>> >>> 4. Try changing the default encoding used by weewx by adding the >>> following to the top of the file user/extensions.py: >>> >>> import sys >>> # Reload sys, because site.py deletes the function setdefaultencoding(). >>> reload(sys) >>> sys.setdefaultencoding('UTF8') >>> >>> If this works, it's a bit of a hack, but it might get you running. It >>> can also break other things. >>> >>> -tk >>> >>> >>> >>> >>> >>> On Wed, Jan 25, 2017 at 9:18 AM, 'pterodaktil' via weewx-user < >>> weewx...@googlegroups.com> wrote: >>> >>>> >>>> Thanks for replay. >>>> Skin.conf in attachment >>>> btw, os ubuntu.12.04 Maybe it's a problem? >>>> среда, 25 января 2017 г., 16:19:48 UTC+3 пользователь Tom Keffer >>>> написал: >>>>> >>>>> This template worked fine for me, using the standard skin.conf (see >>>>> below). >>>>> >>>>> I suspect the problem must be in your skin configuration file, >>>>> skin.conf. Could you include it? >>>>> >>>>> -tk >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Wed, Jan 25, 2017 at 12:49 AM, 'pterodaktil' via weewx-user < >>>>> weewx...@googlegroups.com> wrote: >>>>> >>>>>> >>>>>> Yes, for example one of template ( >>>>>>> /etc/weewx/skins/Standard/index.html.tmpl) >>>>>>> >>>>>> -- >>>>>> 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.