You don't. My question was about your intentions. What encoding do you want your program to use? Do you care?
Earlier your said
I am just looking for how to transform a string into a wstring and a wstring into a string.
So what's the exact problem that you're trying to solve? If you just need to momentarily convert an std::string into an std::wstring such that you can later reverse the conversion, that's easy.
If you need to momentarily convert an std::wstring into an std::string such that you can later reverse the conversion, that's also doable, but it's a different problem with a different solution.