I found while translating my website to Valencian / Catalan a curious 
problem that I do not understand.
The theme is that there is a paragraph of generic tags in which if I put a 
single accent stops the generation of the images.

Whith this fuzzy-archer skin,they are a left zone with gauges and there all 
labels are working 100% ok, but into right zone, they generate a graphics 
daily, monthly, weekly and yearly that no generates ok if a put one or more 
accents.

After a lot of testing, I find that the problem only occurs if the standard 
label is used for graphics and if it has some accent on the names of the 
labels, if it does not have an accent, or the tag is customized inside the 
skin.conf The picture folder all works fine.

The error that indicates in the log when I put the accents of the Catalan 
language is the following one:

Jun 13 17:45:37 localhost weewx[22082]: translategenerator.pyc: Language is 
>> catala
>> Jun 13 17:45:37 localhost weewx[22082]: reportengine: Caught 
>> unrecoverable exception in generator 
>> user.translategenerator.ImageGeneratorTranslated
>> Jun 13 17:45:37 localhost weewx[22082]:         ****  'utf8' codec can't 
>> decode byte 0xf3 in position 6: invalid continuation byte
>> Jun 13 17:45:37 localhost weewx[22082]:         ****  Traceback (most 
>> recent call last):
>> Jun 13 17:45:37 localhost weewx[22082]:         ****    File 
>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>> Jun 13 17:45:37 localhost weewx[22082]:         ****      obj.start()
>> Jun 13 17:45:37 localhost weewx[22082]:         ****    File 
>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>> Jun 13 17:45:37 localhost weewx[22082]:         ****      self.run()
>> Jun 13 17:45:37 localhost weewx[22082]:         ****    File 
>> "/usr/share/weewx/weewx/imagegenerator.py", line 31, in run
>> Jun 13 17:45:37 localhost weewx[22082]:         ****      
>> self.genImages(self.gen_ts)
>> Jun 13 17:45:37 localhost weewx[22082]:         ****    File 
>> "/usr/share/weewx/weewx/imagegenerator.py", line 215, in genImages
>> Jun 13 17:45:37 localhost weewx[22082]:         ****      gap_fraction  = 
>> gap_fraction))
>> Jun 13 17:45:37 localhost weewx[22082]:         ****    File 
>> "/usr/share/weewx/weeplot/genplot.py", line 557, in __init__
>> Jun 13 17:45:37 localhost weewx[22082]:         ****      self.label      
>>  = to_unicode(label)
>> Jun 13 17:45:37 localhost weewx[22082]:         ****    File 
>> "/usr/share/weewx/weeutil/weeutil.py", line 1282, in to_unicode
>> Jun 13 17:45:37 localhost weewx[22082]:         ****      return 
>> unicode(string, encoding) if string is not None else None
>> Jun 13 17:45:37 localhost weewx[22082]:         ****    File 
>> "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
>> Jun 13 17:45:37 localhost weewx[22082]:         ****      return 
>> codecs.utf_8_decode(input, errors, True)
>> Jun 13 17:45:37 localhost weewx[22082]:         ****  UnicodeDecodeError: 
>> 'utf8' codec can't decode byte 0xf3 in position 6: invalid continuation byte
>> Jun 13 17:45:37 localhost weewx[22082]:         ****  Generator terminated
>
>  
At the moment I have customized all the tags in the skin.conf of the images 
folder and thus I get it to work.
I apologize for my English, I use a translator from Spanish and I do not 
know if the translation is correct or not.
Greetings.
Xavi, EA5ZF
[email protected]
MeteoLaVall <http://meteolavall.no-ip.org/weewx>

-- 
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.

Reply via email to