try str(row['author_last']) -> row['author_last'] On Jan 22, 2:19 am, geekbuntu <[email protected]> wrote: > have tried: > removing cgi escape > setting to variable before passing in to the .write > using str.encode-decode > everything i could find on google about converting/encoding encoding > classes inside python > > any advice welcome :) > > On Jan 21, 10:16 am, 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)
-- 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.
