﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30550	TestClient's response.json() should decode content using the response charset.	Jon Dufresne	Jon Dufresne	"Right now, response.json() always decodes using utf-8.

https://github.com/django/django/blob/8ba20d9071e9e1b8f2c81d4df977db4278342085/django/test/client.py#L646-L654

{{{
response._json = json.loads(response.content.decode(), **extra)
}}}

While this is frequently correct, the response may be any encoding. If it is a non-UTF-8 encoding, the content should be decoded as such.
"	Bug	closed	Testing framework	dev	Normal	fixed			Accepted	1	0	0	0	0	0
