the code is below: person.FAMILY_NAME = self.request.get('FAMILY_NAME').encode ('utf-8')
this code will cause the below error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128) I have # -*- coding: utf-8 -*- in my .py file,and i also have <meta http-equiv="content-type" content="text/ html;charset=utf-8"> in my html file,why the error still happen? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---