Added support for unicode json dumping. This fixes #535

This commit is contained in:
Armin Ronacher 2012-10-18 00:48:15 +01:00
parent 5583fe8acf
commit 8339cb3508
5 changed files with 52 additions and 9 deletions

View file

@ -274,7 +274,8 @@ class Flask(_PackageBoundObject):
'SEND_FILE_MAX_AGE_DEFAULT': 12 * 60 * 60, # 12 hours
'TRAP_BAD_REQUEST_ERRORS': False,
'TRAP_HTTP_EXCEPTIONS': False,
'PREFERRED_URL_SCHEME': 'http'
'PREFERRED_URL_SCHEME': 'http',
'JSON_AS_ASCII': True
})
#: The rule object to use for URL rules created. This is used by