Announcement

Collapse
No announcement yet.

Unicode to Ansi MemoryEx

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unicode to Ansi MemoryEx

    hi all,
    help me to convert Unicode to Ansi

    PHP Code:
    function UtoA(Unicode)
    size Kernel32.WideCharToMultiByte(00Unicode, -10000);
    heap Kernel32.GetProcessHeap();
    ansi tonumber(Kernel32.HeapAlloc(heap8size));
    Kernel32.WideCharToMultiByte(00Unicode, -1ansisize00);
    local nRet MemoryEx.String(ansi,-1,MEMEX_UNICODE);
    MemoryEx.Free(ansi);
    return 
    nRet;
    end 

  • #2
    Hi,
    Check win_iconv. It will give you the ability to move between ANSI and Unicode.

    Comment


    • #3
      problem is solved,
      it was so easy ))

      MemoryEx.String(UnicodeStrLenght, -1, MEMEX_UNICODE);

      Comment

      Working...
      X