On Thu, Jan 21, 2010 at 8:46 PM, geekbuntu <[email protected]> wrote: > http://paste.pocoo.org/show/168012/ > > complete script on paste. > > Traceback (most recent call last): > File "booksxml.py", line 29, in ? > a = '\t'*2 + str(row['author_last']) + '\n' > UnicodeEncodeError: 'ascii' codec can't encode characters in position > 7-8: ordinal not in range(128)
try a = a = '\t'*2 + web.safestr(row['author_last']) + '\n' It converts unicode to utf-8. -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
