Open xsampedro opened 8 months ago
@xsampedro has your issue been fixed with the release of v1.0? I have not seen issues on my projects yet.
Hello!
I'm having the same problem with the GP São Paulo meeting, for my Flutter App showing São Paulo.
I fixed it using utf8.decode(json['meeting_name'].runes.toList()),
Issue Description
I've encountered an encoding issue when consuming the web service using the Flutter/Dart HTTP client. The client seems to default to
latin1
encoding when theContent-Type
header lacks a specified charset, resulting in misinterpreted special characters.Impact
This issue impacts any client that relies on the
Content-Type
header to determine the correct character encoding. Since the Flutter/Dart HTTP client defaults tolatin1
, it incorrectly decodes responses that include special characters, assuming the absence of acharset=utf-8
in theContent-Type
header.Steps to Reproduce
Proposed Solution
To resolve this issue, I suggest explicitly setting the charset in the
Content-Type
header for JSON responses. This can be implemented in the_process_api_query
function.By specifying charset=utf-8 in the Content-Type header, clients like Flutter/Dart should correctly interpret the response encoding as UTF-8.