hi all,
help me to convert Unicode to Ansi
help me to convert Unicode to Ansi
PHP Code:
function UtoA(Unicode)
size = Kernel32.WideCharToMultiByte(0, 0, Unicode, -1, 0, 0, 0, 0);
heap = Kernel32.GetProcessHeap();
ansi = tonumber(Kernel32.HeapAlloc(heap, 8, size));
Kernel32.WideCharToMultiByte(0, 0, Unicode, -1, ansi, size, 0, 0);
local nRet = MemoryEx.String(ansi,-1,MEMEX_UNICODE);
MemoryEx.Free(ansi);
return nRet;
end
Comment