When I try to compare English symbols like this:
int SomeFunction(System::String^ eng) {
if(eng[0] == 'q') { return 0; }
else { return -1; }
}
all works great. But I can't do the same with ua
or rus
symbols. So how can I compare them?
When I try to compare English symbols like this:
int SomeFunction(System::String^ eng) {
if(eng[0] == 'q') { return 0; }
else { return -1; }
}
all works great. But I can't do the same with ua
or rus
symbols. So how can I compare them?
This works for me (the file has to be "advanced" saved as Unicode):
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Hello World");
if (args[0][0] == L'Ж') { return 1; }
return 0;
}