Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-26 Thread 'pterodaktil' via weewx-user
Hope, it will help many non english-speaking peoples to fix there problems. четверг, 26 января 2017 г., 23:48:36 UTC+3 пользователь Tom Keffer написал: > > >> i think. that its not bad idea to put info that any file that work >> with text must have this line >> >> > Good idea.

Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-26 Thread Thomas Keffer
> > > i think. that its not bad idea to put info that any file that work > with text must have this line > > Good idea. Included in commit 4edce9 ​ -tk -- You received this message because you are subscribed

Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-26 Thread 'pterodaktil' via weewx-user
It helps!!! Many thanks. i think. that its not bad idea to put info that any file that work with text must have this line четверг, 26 января 2017 г., 15:27:00 UTC+3 пользователь Tom Keffer написал: > > Put the line > > #encoding UTF-8 > > > >> > -- You received this message because you

Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-26 Thread Thomas Keffer
Put the line #encoding UTF-8 at the very top of navibar.inc and your problems will go away. Cheetah processes the files separately. Finding no UTF-8 directive in navibar.inc, it assumed that the file was in ASCII, not UTF-8, so it was unable to decode it. The #encoding directive tells it that

Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-26 Thread 'pterodaktil' via weewx-user
I find problem!!! it dont like string #include '/etc/weewx/skins/Standard/navibar.inc' I did not find mistake (non utf simbols in this file) -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving

Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-25 Thread 'pterodaktil' via weewx-user
среда, 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

Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-25 Thread Thomas Keffer
? What result did you get for sys.getdefaultencoding()? So, the original skin worked? What happened when you put a single UTF-8 character in it? Adding setdefaultencoding('UTF8') did not help? -tk On Wed, Jan 25, 2017 at 10:39 AM, 'pterodaktil' via weewx-user < weewx-user@googlegroups.com>

Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-25 Thread 'pterodaktil' via weewx-user
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

Re: [weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-25 Thread Thomas 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

[weewx-user] Re: UnicodeDecodeError: 'ascii' codec can't decode byte

2017-01-25 Thread 'pterodaktil' via weewx-user
> 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