Skip to content

UseDeveloperExceptionPage plain-text response should set charset #35954

Closed
@garryxiao

Description

@garryxiao

Describe the bug

In ASP.NET Core 3.0 and later, the Developer Exception Page displays a plain-text response if the client doesn't request HTML-formatted output. The problem is, when display plain-text response, there is no charset set, just "Content-Type: text/plain" causing garbled when view the text but HTML-formatted output will set with "Content-Type: text/html; charset=utf-8" works.

To Reproduce

Exceptions (if any)

Further technical details

  • ASP.NET Core version
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version

Metadata

Metadata

Assignees

Labels

area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions