mirror of
https://github.com/flutter/samples.git
synced 2025-11-13 10:59:04 +00:00
UTF-8 fix (#590)
This commit is contained in:
@@ -64,7 +64,7 @@ class Unsplash {
|
||||
|
||||
dynamic body;
|
||||
try {
|
||||
body = json.decode(response.body);
|
||||
body = json.fuse(utf8).decode(response.bodyBytes);
|
||||
} catch (e) {
|
||||
throw UnsplashException('Invalid JSON received');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user