That would be pretty hard to do if there's no BOM or other indicator.
You'd probably have to try to figure it out one way or another.
The Windows API offers the function IsTextUnicode which does some
guessing about whether or not a string is in a unicode format or not,
but it's not perfect.
That would be pretty hard to do if there's no BOM or other indicator.
You'd probably have to try to figure it out one way or another.
The Windows API offers the function IsTextUnicode which does some
guessing about whether or not a string is in a unicode format or not,
but it's not perfect.
Is there no way of changing the problem to "how do I guarantee that I
know what the encoding is"?
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.