Ver Mensaje Individual
  #2  
Antiguo 26-09-2016
exmachina exmachina is offline
Miembro
NULL
 
Registrado: sep 2016
Ubicación: 127.0.0.1
Posts: 30
Reputación: 0
exmachina Va por buen camino
Segun he visto en internet el tipo xmlChar es unsigned char y representa a una cadena UTF-8, por lo tanto deberia funcionar bien de la siguiente forma:

Código PHP:
UnicodeString us = UTF8ToString(reinterpret_cast<char*>(xmlbuff)); 
o asi
Código PHP:
int cbwchars =  MultiByteToWideChar(CP_UTF8, 0 ,xmlbuff, -1, NULL , 0);
wchar_t* wstr = new wchar_t[cbwchars];
MultiByteToWideChar( CP_UTF8 , 0 , xmlbuff, -1, wstr, cbwchars);
...
delete[] wstr; 
Responder Con Cita