Created
April 15, 2016 05:43
-
-
Save kurozumi/43d7ad0d98ded60940bbe02fb3873c34 to your computer and use it in GitHub Desktop.
【Python】Python2.7でFlaskのアプリケーションを起動したときUnicodeDecodeErrorが出た時の対処法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from flask import Flask, render_template, request, redirect, url_for | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment