How To Convert from Cyrillic wchar_t* to char*
Nuestro buen Javier Caceres amigo nos comparte su artículo:
How To Convert from Cyrillic wchar_t* to char*
Recently someone asked me about how to cast a multi byte character to a single byte character to get a Cyrillic string encoded in a char data type. In general terms the answer is using the WideCharToMultiByte method but be aware of setting the right length parameter (usually it’s necessary adding the null terminated character size) and the right code page. To answer the question I wrote this function:
Ver más aquí.
Saludos.
Fernando García Loera (Community Program Manager – Latin America Region)