I'm trying to read a unicode file (with Thai text) and display this in a control on the form like an Editbox.
I can read the data into a buffer (array of bytes) but don't know how to convert this to a proper string for the Editbox.
Some details, as I believe is standard with a unicode file it starts with bytes "FF FE" what do they mean, can I just skip them, or is this the codepage?
I assume there is some windows function to convert the array of bytes I read to a proper string. But what is it called and how do I use this. I tried OemToChar and MultiByteToWideChar and back again, but didn't work, or didn't know how to use it.