Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Created April 15, 2016 05:43
Show Gist options
  • Save kurozumi/43d7ad0d98ded60940bbe02fb3873c34 to your computer and use it in GitHub Desktop.
Save kurozumi/43d7ad0d98ded60940bbe02fb3873c34 to your computer and use it in GitHub Desktop.
【Python】Python2.7でFlaskのアプリケーションを起動したときUnicodeDecodeErrorが出た時の対処法
# 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