E027Error

Invalid UTF-8 byte

A byte in the input is not valid UTF-8.

What it means

This usually means Latin-1 or Windows-1252 text (for example a “smart” dash or an accented character) was pasted or read without converting it to UTF-8 first.

Example

Invalid
(Latin-1 / Windows-1252 bytes)
Valid
(re-encode the input as UTF-8)

How to fix it

Re-encode the input as UTF-8 before validating.

Validate your JSON to see this and every other issue highlighted in one pass.


Diagnostics on this page come from @jsonlint/core, the open-source engine that powers the JSONLint validator. Install it with npm install @jsonlint/core.