HTML character encoding tells a browser or scraper how to turn the bytes in an HTML document into text. A decoder that assumes the wrong encoding can turn a product name such as Café into Café even when the HTML selectors work perfectly.
For a normal HTTP HTML response, a browser checks for a byte order mark at the start of the document. A supported charset from the HTTP Content-Type header takes precedence over an in-page declaration such as <meta charset="utf-8">. Browsers can scan early bytes for that declaration when stronger signals are absent. The HTML standard places the declaration within the first 1,024 bytes.
Browser-compatible decoders also follow the web's encoding labels. For example, the WHATWG Encoding Standard maps iso-8859-1 to Windows-1252, so the byte 0x80 becomes a euro sign. A library using strict ISO-8859-1 can produce a different result from a browser.
First undo any HTTP content coding such as gzip, or let the HTTP client do it. Next decode the document bytes to text with an HTML-aware decoder and pass that text to your parser. If you hand the parser a string that your client already decoded incorrectly, the parser may have no way to recover the original bytes.
When investigating corrupt fields, keep a sample of the bytes and the response's Content-Type alongside the detected charset. Repeated replacement characters or broken accents are clues to compare the decoder's output with the page in a browser.
How Crawlora handles this
Crawlora's structured platform endpoints expose documented JSON fields. When you parse raw HTML captures yourself, keep the encoding checks at the point where bytes first become text.
Related reading
Glossary
FAQ
Charset governs how to read document bytes as text. Content-Encoding describes a coding applied to the HTTP representation, such as gzip compression.
The browser may have honored a byte order mark, header, or meta declaration that the scraper's decoder missed. Compare the raw bytes and selected charset before changing your selectors.
Beyond HTML Character Encoding, Crawlora's own docs cover the rest of the stack — browse the APIs, test a request in Playground, and move from scraping infrastructure work to production data workflows.