LocalisedStrings can't read UTF8 encoded file

An option should be added in the LocalisedStrings constructor to be able to load UTF8 encoded files.


It should indeed. But you can easily do it by grabbing the file into a memoryblock and calling LocalisedStrings (String::fromUTF8 (memoryblock.getData())).

Mmm… good point. Thnx!

Edit: fromUTF8 must not start at start of UTF8 files as it doesn’t handle the BOM char sequence, so if start sequence is 0xef, 0xbb, 0xbf I do LocalisedString(String::fromUTF8( ((const uint8*)memoryBlock.getData()) + 3)