Clean Way to Convert Python 3 Unicode to std::string
Looks like the solution exists in python 3.3, with char* PyUnicode_AsUTF8(PyObject* unicode)
. This should be exactly the same behavior as the PyString_AsString()
function from python 2.
Looks like the solution exists in python 3.3, with char* PyUnicode_AsUTF8(PyObject* unicode)
. This should be exactly the same behavior as the PyString_AsString()
function from python 2.