2011-03-23から1日間の記事一覧
FlaskでUTF-8以外(例えばsjis)のサイトを作成するための自分メモを以下、羅列 after_request内でresponse.dataの内容を変換 response.headers.addでresponse_headerを適切なものに設定 sys.setdefaultencoding('sjis') でdefaultencodingをsjisに設定 スク…
FlaskでUTF-8以外(例えばsjis)のサイトを作成するための自分メモを以下、羅列 after_request内でresponse.dataの内容を変換 response.headers.addでresponse_headerを適切なものに設定 sys.setdefaultencoding('sjis') でdefaultencodingをsjisに設定 スク…