The declared encoding decides what the file's bytes become

All 2 scenarios hold

The last row of /subfolder/custom_encoding.table holds the six ISO-8859-1 letters ÉÜ¥ÆØÅ. Read in another encoding the same bytes decode to other characters, so the encoding belongs with the resource path.

expected outcome broken scenario
ScenarioEncodingCharacters in the last row's first cell?Code points?
The encoding the file usesISO-8859-16
  • 201
  • 220
  • 165
  • 198
  • 216
  • 197
Read as UTF-8 insteadUTF-85
  • 65533
  • 1829
  • 65533
  • 65533
  • 65533