Character Encoding issue

-Hello, i am trying to make a mobile app that uses a json (from a rest service) and makes a list. The problem is that an item of the json has greek characters. When i run the app the emmulator does not recognizes the greek characters.
-So far i have added “http: ^0.12.0+4” under “dependencies:” in the pubspec.yaml file and also
i’ve added to the headers of the “http.get” this “charset”: “utf-8” in the main.dart file
Also i have added the following library “import ‘dart:convert’ as UTF8;” and i am trying somehow to use this libray.
Anyway i couldn’t find something to fix my problem

Could you please share the json?
What error(s) or exception (s) did you get?

1 Like

First thanks a lot for your answer. I believe that i do not have an error related to my problem. As you will see in the console picture below i’ve printed the json on the conole window. The json file looks like this:
“items”: [
“party_id”: 442005804,
“cpr”: “0408”,
“insert_date”: “2020-02-10T13:43:58Z”,
“euromas_id”: 3362145,
“symb”: “103095585”,
“klad”: “10”,
“apod”: null,
“cpel”: 2724810,
“doc_category_id”: null,
“doc”: null,
“arzhm”: null,
“msg_id”: 8066415,
“req_id”: null,
“klad_perigr”: “10 ΑΥΤΟΚΙΝΗΤΩΝ”,
“eidos”: “11”,
“eidos_perigr”: “Ε-mail/SMS”,
“default_color”: “#A52A2A”,
“perigr”: “EMAIL: Από σε
Ευρωπαϊκή Πίστη - Ας επικοινωνήσουμε e-λεκτρονικά! για τον πελάτη ελξλφλδξφλξιξφιεξφξη”,
“perigr_symb”: “FORD,ξχφξη34398, BM=-2,ΙΠ=7, ΧΡΗΣΗ=00, Τ=043,Π=916,OM=51”,
“msg_content”: “

Καλωσήρθατε στην υπηρεσία ηλεκτρονικής επικοινωνίας!

Παρακαλούμε ενεργοποιήστε την ηλεκτρονική αποστολή εγγράφων του συμβολαίου σας 103095585 (ΚΛΑΔΟΣ ΑΥΤΟΚΙΝΗΤΩΝ), πατώντας στο παρακάτω link

<table align=“center” width=“100%” border=“0” cellspacing=“0” cellpadding=“0”>\n \n \n <table align=“center” border=“0” cellspacing=“0” cellpadding=“0”>\n \n <td align=“center” bgcolor=”#06214E" style=“font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; text-decoration: none;border-radius: 5px; display: inline-block;”><a href=“http:…” target="_blank" style=“font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; text-decoration: none; padding: 12px 18px; display: inline-block;”>Επιβεβαίωση email\n \n \n \n \n
Μπορείτε ανά πάσα στιγμή να επαναφέρετε τον προηγούμενο τρόπο αλληλογραφίας καλώντας το Τμήμα Εξυπηρέτησης Πελατών στο τηλ. 21088788778 ή με e-mail στο",
“req_url”: null

Thank you for providing the above information.
To be sure that I have understood the problem you are facing.
You are trying to build a list using this json.
Since occurrence of Greek characters in the json, you are not able to build the list.
Is my understanding correct?

Greetings, the list eventually is built…, but the greek characters are not shown properly, as it is shown on the above console picture with “red greek chars” notation.
I am using postman to call the “get” of the rest service and the outcome is ok (where i wrote above “The json file looks like this:”).
But in the code of the dart whe i do get and printing the response i’ve got the above console picture

file Future fetchPost() async {
final response = await http.get…
print('response.statusCode = ’ + response.statusCode.toString());