html icon indicating copy to clipboard operation
html copied to clipboard

Bad UTF-8 encoding when parse google.com

Open yelliver opened this issue 5 years ago • 0 comments

Tried with this code:

var response = await Client().get("https://www.google.com/");
var result = parse(response.bodyBytes, encoding: "utf-8");

And got this error:

Unhandled Exception: FormatException: Bad UTF-8 encoding 0xa0 (at offset 10434)

yelliver avatar Jul 17 '20 19:07 yelliver