Hi CBoard members.
I want to write a function which will return true or false based on if the given string is Utf8 encoded or not.
for example:
Since this is a multi byte encoding, currently I am just checking null chars. If there are more than one null chars then the string is Utf8 encoded else just a plain ASCII string.Code:boo isUtf8(const string & str) {}
Please tell me what else can I check for in my function?