I need to translate a string from cp1251 to unicode . For this, I use MutliByteToWideChar(1251, ...) .
The strangeness is that if you do not:
setlocate(LC_ALL, "rus"); The characters with the codes [128-255] are translated incorrectly. Yes, I know that setlocale () sets the locale to use ... But I don’t understand what is the connection with the conversion function, which clearly indicated that the input string is in cp1251 .