Orvid / Caprica

A compiler for the Papyrus scripting language used by the Creation Engine.
MIT License
83 stars 14 forks source link

UTF-8 with BOM mess with Caprica #37

Open XxX-Daniil-underscore-Zaikin-XxX opened 2 weeks ago

XxX-Daniil-underscore-Zaikin-XxX commented 2 weeks ago

Caprica can't read any Papyrus files saved with UTF-8 BOM.

Orvid commented 2 weeks ago

This can probably be solved fairly easily by adding a check here to skip the utf-8 little endian BOM: https://github.com/Orvid/Caprica/blob/master/Caprica/papyrus/PapyrusCompilationContext.cpp#L83