Is there an easy way to query german letters like 'ä', 'ö' 'ü' in an API with Darts http - API (in Flutter)?
An API query should download a jSON string to a Flutterapp. Unfortunately, the jSON string contains German special characters.
String einleseURL = 'http://xxx.xxx.xxx.xxx/einlesen.json';
final ausgeleseneJsonString = await http.get(Uri.encodeFull(einleseURL));
uiUeberprueft = serializers.deserializeWith(
RenderEbeneErste.serializer, json.decode(ausgeleseneJsonString.body));
The only solution I can imagine is to convert the jSON String in utf-8's numeric values and save this new file at the server for http query. The list of numbers is then called by Flutter and decrypted with utf.decoode () before a json.decode () occurs.
please refer: How can I convert string to utf8 in Dart?
Is there a simpler way?