diff --git a/pkgs/http/lib/src/utils.dart b/pkgs/http/lib/src/utils.dart index 9bf47f763f..72ec1529f2 100644 --- a/pkgs/http/lib/src/utils.dart +++ b/pkgs/http/lib/src/utils.dart @@ -22,7 +22,7 @@ String mapToQuery(Map map, {required Encoding encoding}) => /// /// Returns [fallback] if [charset] is null or if no [Encoding] was found that /// corresponds to [charset]. -Encoding encodingForCharset(String? charset, [Encoding fallback = utf8]) { +Encoding encodingForCharset(String? charset, [Encoding fallback = latin1]) { if (charset == null) return fallback; return Encoding.getByName(charset) ?? fallback; }