View Single Post
Old 03-11-2009, 12:27 AM   #5
kannjihyun
Junior Member
kannjihyun began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Mar 2009
Device: PRS-505
Thanks!

Now I have the feeds properly downloaded to the calibre already. It works perfectly when viewed on calibre. However, all Thai fonts are garbled when viewed from the PRS-505. Why is 'utf8' not working? Is there a way to embedded the Thai font into the fetch directly?

Code:
#!/usr/bin/env  python

import string, re
from calibre import strftime
from calibre.web.feeds.recipes import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup


class iannnnn(BasicNewsRecipe):
    title          = u'iannnnn.com'
    description = 'Blog from iannnnn.com'
    timefmt = ' [%a, %d %b, %Y]'
    oldest_article = 10
    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False
    remove_javascript     = True
    encoding = 'utf8'
    remove_tags = [dict(name='div', attrs={'id':['nav', 'rss', 'entry', 'searchbox']})]
    remove_tags_after = [dict(name='h3', attrs={'id':'comments'})]
    
    feeds          = [(u'iannnnn', u'http://iannnnn.com/feed')]
kannjihyun is offline   Reply With Quote