Skip to content

Issue Decoding Special Characters (response.body) #789

@lcsvcn

Description

@lcsvcn

Issue decoding special characters such as:

ã --> didn't test with any other special chars, but should be happening too. Such as ç, õ, á, à, ó, í, and so on...

Code:

final response = await http.get(
      serverUrl,
      ),
      headers: {
         "accept": "application/json;",
      },
    );
  
   print(response.body);  // prints { "title":"Não encontrado" } -- should be {"title":"Não encontrado"}

Expected:

{ "title": "Não encontrado" }

Reality:

{ "title":"Não encontrado" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-breaking-releaseIssues that are worth doing but need to wait for a breaking version bump

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions