How to receive variables in a post in google app engine that contains string with chars like: õ á?

后端 未结 4 1573
悲&欢浪女
悲&欢浪女 2020-12-20 03:48
email = self.request.get(\'email\')
name = self.request.get(\'name\')
mail.send_mail(sender=\"myemail\", email=email, body=name, subject=\"sss \" + name + \"sdafsaã\         


        
4条回答
  •  情书的邮戳
    2020-12-20 04:34

    Try with encode

    t ='việt ứng '
    m = MyModel()
    m.data = t.encode('utf-8')
    m.put() #success!
    

提交回复
热议问题