A file contains non-latin content and is encoded in UTF8.
Currently the existing code uses "fopen
" to open the file, parses it and calls my validate
function with the non-latin content and passes data as char*
.
void validate(const char* str)
{
....
}
I have to do some validation on passed char
array.
The application uses Sun C++ 5.11
and which I think doesn't supports unicode
. (I googled for unicode support on Sun C++ 5.11, I didn't get any proper pointers about the unicode support. So I wrote a simple program to check if Sun C++ supports unicode and the program didn't compile).
How do I do the validation on the input char*
? Is it possible using wchar_t
?