Fixed bug returning non-ascii characters in CSV, closes #584

This commit is contained in:
Simon Willison 2019-10-17 22:23:01 -07:00
commit a9f877f7bf
2 changed files with 10 additions and 1 deletions

View file

@ -217,7 +217,7 @@ class AsgiWriter:
await self.send(
{
"type": "http.response.body",
"body": chunk.encode("latin-1"),
"body": chunk.encode("utf-8"),
"more_body": True,
}
)