Understanding UTF-8 BOM Localisation Errors in HOI4
If HOI4 displays raw keys like VIE_industrial_expansion even though the string exists in your .yml file, the file is usually missing a UTF-8 Byte Order Mark.
What HOI4 expects
- UTF-8 with BOM: bytes
EF BB BFat the start of the file. - Matching suffix and header: filename ending in
_l_english.ymlwithl_english:unindented on line 1. - Closed formatting: escape internal quotes as
\"and close color codes with§!.
All .yml files exported by HOI4 Mod Surgery include explicit UTF-8 BOM bytes.