Skip to content

Instantly share code, notes, and snippets.

@kurozumi
Created Apr 15, 2016
Embed
What would you like to do?
【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