Encoding problem in app engine when submitting multipart/form-data forms

后端 未结 6 1499
别跟我提以往
别跟我提以往 2020-12-06 01:19

I have a simple form that submits a image to the blobstore and a title for the image. This works on my local devserver but when I deploy my code, non ascii letters in the ti

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 02:24

    This is a known bug. http://code.google.com/p/googleappengine/issues/detail?id=3761

    Getting back to the original data is a matter of:

    >>> import quopri
    >>> t = unicode(quopri.decodestring('=CD'), 'iso_8859-2')
    >>> print t
    Í
    

提交回复
热议问题