Thanks! It works now. For others reading this thread, the code now
reads:
class Person(db.model):
name = db.ByteString()
description = db.BlobProperty()
class PersonHandler(webapp.RequestHandler):
def get(self):
pers = Person()
pers.name = encrypt_data(self.request.get('name'))
I can't imagine why this would work on the dev server (might be a
locale setting on your local machine that makes unicode() somehow use
an encoding that works), but from what I can tell, an ARC4
object's .encrypt() method isn't producing encoded unicode, so
coercing it to unicode (either without sp
Sure Geoffrey. Sorry about that.
class Person(db.model):
name = db.StringProperty()
description = db.TextProperty()
class PersonHandler(webapp.RequestHandler):
def get(self):
pers = Person()
pers.name = unicode(encrypt_data(self.request.get('name')))
pers.description =
unicode(
On Mar 22, 12:45 pm, Kwame wrote:
> 'ascii' codec can't decode byte 0x8a in position 2: ordinal not in
> range(128)
>
> I've read so many solutions about this problem, even Nick's
> Blog:http://blog.notdot.net/2010/07/Getting-unicode-right-in-Python
>
> ...which addresses the problem very well.