View Single Post
Old 02-14-2011, 05:37 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,445
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In your recipes do not use html entities for unicode characters, instead use python escape sequences or utf-8 encoded characters

'ă' becomes u'\u0103' or u'ă'

The first line of your recipe should be

# -*- coding: utf-8 -*-

Also instead of

language = _('Romanian')

use

language = 'ro'

let me know when you've made the changes
kovidgoyal is offline   Reply With Quote