I want to start using uncicode strings.

Looking at Py::string I see the method as_unicodestring, however this returns a std::basic_string<Py_UNICODE> and provides no option of encodeing...

Another method is the encode method, this lets me provide the encoding but just returns another Py::String...


What exactly do I need to do to go between a python unicode string and a std::wstring (where sizeof(wchar_t)==2)in UTF-16 encoding?




Share your photos with Windows Live Photos Free Find out more!