bynk.embed.invalid_encoding
Error An embed names a file that is not valid UTF-8.
An embed becomes a String, which is Unicode text, so the file must be valid UTF-8. A file saved in another encoding, such as Latin-1, holds bytes that are not UTF-8 and cannot be read as text. Re-save it as UTF-8. A file that holds a NUL byte is binary and is bynk.embed.binary_content; a binary file belongs in assets/, as an asset.
Example
embed shell = "embeds/page.html" // ✗ the file is Latin-1, not UTF-8embed shell = "embeds/page.html" // ✓ once the file is saved as UTF-8In the Book
See also
- Every code in its category, Embedded text, on the diagnostic index.
bynk explain bynk.embed.invalid_encodingshows the same from the installed toolchain, without a network.