I receive this error Unhandled Exception: FormatException: Invalid HTTP header field when my header value contain accent: village_name=moapé.
How to encode header to avoid this. This my code:
Map<String, String> headers = {"Content-type": "application/json", "cookie": cookies};
http.Response response = await http.get(url, headers: headers);