2011-10-04, 12:36
k_zeon Wrote:i think it is to do with UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 32: ordinal not in range(128)
if i comment out the metahandler bits it load the menu's fine.
Code:infoLabels['plot'] = str(meta['plot'])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 32: ordinal not in range(128)
21:53:03 T:118956032 M:100352000 INFO: -->End of Python script error report<--
you shouldn't be casting stuff to str like that or you will run into all sorts of unicode problems as you are finding out. you need to make sure all your text is properly encoded unicode in order to cope with all the accents and other 'odd' characters. as i said earlier, if you use t0mm0.common.net to grab the page the unicode stuff should all be sorted out for you.
also wouldn't it be better to make it so that the dict returned by the meta stuff was ready to be used as an infolabel rather than having to mess with it in the addon?
t0mm0