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í.

Fernando García Loera (Community Program Manager – Latin America Region)

Icono Ferglo 40x116twitter 40x40RSS 40x40facebook 40x116linkedin40x40xbox 40x40

Que es un MVP? / Tips para ser MVP

Comments (0)

Skip to main content