fedora12

Conversion from char * to wchar* does not work properly

喜夏-厌秋 提交于 2019-12-13 05:53:07
问题 I'm getting a string like: "aña!a¡a¿a?a" from the server so I decode it and then I pass it to a function. What I need to do with the message is something like loading paths depending the letters. The header of my function is: void SetInfo(int num, char *descr[4]) so it receives one number and an array of 4 chars (sentences). To make it easier, let's say I just need to work only with descr[0]. When I debug and arrive there to SetInfo(), I get the exact message in the debugg view: "aña!a¡a¿a?a"