I am using aqueduct web api framework to support my flutter app. In my api backend I need to connect local network socket services. My problem is that I can\'t return the ex
import 'dart:convert' show utf8;
var encoded = utf8.encode('Lorem ipsum dolor sit amet, consetetur...');
var decoded = utf8.decode(encoded);
See also https://api.dartlang.org/stable/1.24.3/dart-convert/UTF8-constant.html
There are also encoder and decoder to be used with streams
File.openRead().transform(utf8.decoder).
See also https://www.dartlang.org/articles/libraries/converters-and-codecs#converter
utf8.decode(stringData.runes.toList()),
This could be used to get the UTF-8 in flutter. here the stringData string will contain the necessary data with UTF-8 content.