Abdelrazak Younes a écrit :

char * foo = codec->fromUnicode(str);

make it rather :

 char * foo = codec->fromUnicode(str).data();

This is a typo.

return foo[0];

This should work on VC++ and gcc. _But_ note that I didn't recommend that, I recommended:

return codec->fromUnicode(str)[0];

You don't need the data() transformation.

Abdel.






Reply via email to