0

when i get data from API Arabix words doesn't show and it show like this enter image description here

is this from flutter or Django Restframework?

flutter request ''' final url = Uri.parse('http://127.0.0.1:8000');

 final data = await http.get(url); final flats = json.decode(data.body) as List<dynamic>; if(flats==null) { return; } 

print(flats)

'''

5
  • Could you post your Django API code? Commented Jan 11, 2023 at 0:45
  • 1
    i think the Django api code is right because i test the api with postman and it show the words correct Commented Jan 11, 2023 at 0:47
  • Make sure you're using UTF-8 encoding. You can use curl to help narrow down whether the issue is on the backend or client side. Commented Jan 11, 2023 at 0:47
  • i think this is Encoding Error. Confirm server side see Commented Jan 11, 2023 at 0:51
  • i use restframework classes Commented Jan 11, 2023 at 0:55

1 Answer 1

0

The solution was to use dio instead of http.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.