UTF-8 requested. BOM is for UTF-16

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Thu Sep 19 00:17:38 UTC 2019

On Sunday, 15 September 2019 at 23:50:27 UTC, solidstate1991 
> This is what I get when I try to run a unittest on one of my 
> projects.
> Here's the file that generates this error: 
> https://github.com/ZILtoid1991/pixelperfectengine/blob/master/pixelperfectengine/src/PixelPerfectEngine/graphics/extensions.d

I think the short answer everyone is trying to get to is.

You need to use readText!wstring(file) because the file claims to 
be UTF-16 and reading it an UTF-8 would be wrong.

However the code shown has no readText so we don't exactly know 
where you issue lies.

More information about the Digitalmars-d mailing list