Py-Cineveristy Rss plugin Bug



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 18/05/2011 at 14:29, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:    
    Platform:      
    Language(s) :

    ---------
    hi,

    Today while studing Py-Cineveristy Rss plugin, I found this bug:

    Updating... http://www.maxon.net/index.php?id=1164&type=100&L=0
    The Last Cause - SciFi Melodrama with Anime Influence Looking for Sponsors
    After Effects CS 5.5 and CINEMA 4D R12 - Always a Dynamic Duo
    The Glitter of Artificial Diamonds
    MAXON CINEMA 4D R12 Honored with Live Design Magazine
    Traceback (most recent call last) :
    File "CVRss.pyp", line 155, in Timer
      File "CVRss.pyp", line 170, in ScrollRss
      File "<string>", line 9, in write
    UnicodeEncodeError: 'ascii' codec can't encode character u''' in position 0: ordinal not in range(128)

    in xml we have <title>'Inspired Visions' Rendering Competition</title>

    So I made some adjustment:
    ->replace line 169: title = unicode(self.rss_items[self.current_item]['title'])
    with this:
    title= self.rss_items[self.current_item]['title']
    title = title.encode('ascii', 'ignore')

    Hope this usefull.


Log in to reply