DEVELOPMENT EDITION · 769442725406
Diagnostics Reference
On this page

B0003: source is not valid UTF-8

Catalog status: active. Default severity: error. Stable name: invalid-utf8. Family: Syntax and source text.

Verada reads source files as UTF-8. The byte underlined is not part of a valid UTF-8 sequence, which usually means the file was saved in another encoding (such as Latin-1 or Windows-1252).

Example (Vada)

A file saved as Latin-1 containing é holds the single byte 0xE9, which is not valid UTF-8.

Example (Varc)

A file saved as Latin-1 containing é holds the single byte 0xE9, which is not valid UTF-8.

What to do

Re-save the file as UTF-8 in your editor, or convert it (for example with iconv -f latin1 -t utf-8).

Regression source and further reading

Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.

See syntax and source text, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.