Показать сообщение отдельно
Старый 23.07.2014, 14:11   #4  
DmitryK is offline
DmitryK
Участник
 
179 / 76 (3) ++++
Регистрация: 22.12.2011
Вожно воспользоваться winapi

client static binary MultiByteToWideChar(str inS)
{
DLL _dll = new DLL("KERNEL32.dll");
DLLFunction _MultiByteToWideChar = new DLLFunction(_dll, "MultiByteToWideChar");
Binary bin = new Binary (10240);
Binary res = new Binary (10240 * 2);
int len;
int i;
;

_MultiByteToWideChar.arg(ExtTypes:Word, ExtTypes:Word, ExtTypes::Pointer, ExtTypes:Word,
ExtTypes::Pointer, ExtTypes:Word);
_MultiByteToWideChar.returns(ExtTypes:Word);

len = strLen(inS);
bin.string(1, inS);

_MultiByteToWideChar.call(65001, 0, bin, len, res, len);
return res;
}

Это функция для перекодировки

С уважэением, Дмитрий.