Answers for "unhandled exception: formatexception: unexpected character (at character 1)"

0

unhandled exception: formatexception: unexpected character (at character 1)

Finally i resolve the problem using laravel, returning the data in this way

return response()->json($yourData, 200, ['Content-Type' => 'application/json;charset=UTF-8', 'Charset' => 'utf-8'],
    JSON_UNESCAPED_UNICODE
I have noticed that this error occurs only in emulator, but not in a physical device.
Posted by: Guest on March-20-2021
0

FormatException (FormatException: Unexpected character (at character 1)

var pdfText= await json.decode(json.encode(response.databody);
Posted by: Guest on August-28-2021

Code answers related to "unhandled exception: formatexception: unexpected character (at character 1)"

Browse Popular Code Answers by Language