The question is how to convert wstring to string?
I have next example :
#include
#include
int main()
{
std::wstr
I believe the official way is still to go thorugh codecvt
facets (you need some sort of locale-aware translation), as in
resultCode = use_facet >(locale).
in(stateVar, scratchbuffer, scratchbufferEnd, from, to, toLimit, curPtr);
or something like that, I don't have working code lying around. But I'm not sure how many people these days use that machinery and how many simply ask for pointers to memory and let ICU or some other library handle the gory details.