saving octet-stream png file

Jon Ribbens jon+usenet at unequivocal.eu
Sun Aug 21 17:24:48 EDT 2016


On 2016-08-19, Larry Martell <larry.martell at gmail.com> wrote:
> fd.write(request.POST[key])

You could try:

  request.encoding = "iso-8859-1"
  fd.write(request.POST[key].encode("iso-8859-1"))

It's hacky and nasty and there might be a better "official" method
but I think it should work.



More information about the Python-list mailing list