swig/Examples/test-suite/unicode_strings.i
Harvey Falcic 5c5dfc106f Python unicode_strings test case: restrict to Python > 3.0
Also adjust the test method names and content to match the docs.
2014-05-24 15:39:53 -04:00

15 lines
239 B
OpenEdge ABL

%module unicode_strings
%include <std_string.i>
%inline %{
const char* non_utf8_c_str(void) {
return "h\xe9llo w\xc3\xb6rld";
}
std::string non_utf8_std_string(void) {
return std::string("h\xe9llo w\xc3\xb6rld");
}
%}