Skip to content

Specify text download charset to utf-8 so the browser renders characters correctly

Links

Explanation

For a plain text response, if you do not explicitly specify the charset, then the browser defaults to a system or legacy encoding like ISO-8859-1. This change explicity sets the charset to utf-8.

Screenshots

Before:

image

After:

image

Merge request reports

Loading