Text encoding in Cocos2d-x

Text encoding in Cocos2d-x
0.0 0



I have a game that takes the user name from the device virtual keyboard. This could be for example: Jesús Bosch (please note the “ú” character).

I try to make a std::string with that info, but the xcode inspector shows me special characters like “Jes\xc3\xbas” instead of “Jesús”. Do you know how to deal with this situation?