UnicodeDecodeError when passing GET data in Python/AppEngine

后端 未结 2 2021
太阳男子
太阳男子 2021-01-27 11:31

This feels like a really basic question, but I haven\'t been able to find an answer.

I would like to read data from an url, for example GET data from a querystring. I am

2条回答
  •  日久生厌
    2021-01-27 11:40

    Check out this blog post on how to do unicode right in Python. In a nutshell, you're trying to decode a byte string (implicitly) as ASCII, and it contains a byte that isn't valid in that codec. Your string is probably in UTF-8.

提交回复
热议问题