ダウンロード時の HTTP Header 出力処理で… 日本語のファイル名を持つ Excel ファイルのダウンロード処理で、IEとそれ以外とで Content-Type と Content-Disposition を ua = os.environ['HTTP_USER_AGENT'] # User Agent に 'MSIE' が含まれているかどうかで charset を変更 charset = 'shift_jis' if re.search(u'msie', ua, re.I) else 'utf-8' if is_xlsx: print 'Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=' + charset else: print 'Content-T