0

When fetching data from the API, the text is Arabic It looks like this inside a flutter

I/flutter ( 5741): name name name     نقص الÙيتامين D يسبب مرض:
I/flutter ( 5741): name name name     من هو الصحابي الجليل الذي اهتز عرش الرحمن لموته ؟
I/flutter ( 5741): name name name     مدة الشوط  الخامس لكرة الطائرة
I/flutter ( 5741): name name name     عددالخلايا الناتجة عن الانقسام الميتوزي (المتساوي):
Rob Napier
  • 286,113
  • 34
  • 456
  • 610
HALDUN
  • 3
  • 5
  • 1
    Please provide some code. How are you receiving your data? What is the data expected to look like? – Er1 Nov 09 '21 at 10:32
  • Please provide enough code so others can better understand or reproduce the problem. – Community Nov 09 '21 at 18:47
  • Future fetchQuestion(int id) async { late Question question; print('fetchQuestion fetchQuestion '); var url = Uri.http(basicUrl, '/questions/${id}'); List? listQuestionId = null; try { var responRes = await http.get(url); if (responRes.statusCode == 200) { final jsonResponRes = convert.jsonDecode(responRes.body) as Map; //currenntQuestion = jsonResponRes as Quest; print('name name name ${jsonResponRes['name']}'); – HALDUN Nov 10 '21 at 18:48
  • Please do not post long strings of code in a comment. It's unreadable. Edit your a question to provide all relevant details. What is the JSON you receive (literally, what are the bytes?), and what do you expect this to output? – Rob Napier Nov 10 '21 at 20:43

0 Answers0