summaryrefslogtreecommitdiff
path: root/Examples/test-suite/unicode_strings.i
blob: 56063c8a42c06540248ea60162b82af32fde0e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%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");
}

%}