error while storing data in datastore

Posted by Rahul99 on Stack Overflow See other posts from Stack Overflow or by Rahul99
Published on 2010-03-15T05:40:15Z Indexed on 2010/03/15 5:49 UTC
Read the original article Hit count: 192

Filed under:
for st in Traks :
      trak = TrakHtml()
      trak.hawb = st
      url = 'http://etracking.cevalogistics.com/eTrackResultsMulti.aspx?sv='+st
      result = urlfetch.fetch(url)
      trak.htmlData = result.content
      trak.put()

trak.htmlData is a textproparty(). It's giving this error:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 29284: ordinal not in range(128)

© Stack Overflow or respective owner

Related posts about python