From: William N. <fir...@ho...> - 2009-02-10 17:15:57
|
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? _________________________________________________________________ Twice the fun—Share photos while you chat with Windows Live Messenger. Learn more. http://www.microsoft.com/uk/windows/windowslive/products/messenger.aspx |