1. 程式人生 > 其它 >檔案下載中文亂碼問題後端

檔案下載中文亂碼問題後端

技術標籤:odoopython

content_disp = f"attachment; filename*=UTF-8''{file_name}"
# content_disp = content_disposition(self.filename(with_time))
xlshttpheaders = [('Content-Type', content),('Content-Length', len(xls)),
                          ('Content-Disposition', content_disp)]