Hi,
Im working on a cross plateform development whereby Im sending a UTF-8 based message data (containing Chinese characters) from Windows to Linux.
Now on the Linux side (using C++), I need to compare each line to find the Chinese string Im looking for and do the processing based on if I find the Chinese strings.
The question is that even though I can see the Chinese string exist in the message that Im reading on the Linux side, the comparison is not finding it. Im using std::wstring and using the find() method of the wstring.
When I print the message to the standard output (console) in Linux, I can see the Chinese string, but find is not finding it. In the Linux side, I am prefixing the Chinese string with "L" i.e. L "<chinese string="">".
Will appreciate any help in figuring out why the Chinese string is not being found even though it exists.
THanks