Tapatalk

Anyone have a macro for turning Unicode into wchar_t[]??

Anyone have a macro for turning Unicode into wchar_t[]??

61
Advanced UserAdvanced User
61

    Jul 02, 2005#1

    I know it can be done, and it's probably fairly easy. But I don't want to re-invent the wheel. If nobody else has something like this already, I would consider writing it myself.

    What I have done up to now:

    (1) Open a new file in UltraEdit and convert ASCII to Unicode editing;
    (2) Compose some text (usually in Russian) using the Windows character map application;
    (3) Copy and paste the text into UltraEdit;
    (4) Switch to hex edit;
    (5) Copy the hex view and paste to a new file;
    (6) Manually edit the hex numbers until I have something like this:

    Code: Select all

    	  0x42D,0x442,0x43E,0x020,0x43E,0x43A,0x43D,0x43E,
    	  0x020,0x433,0x43E,0x432,0x43E,0x440,0x438,0x442,
    	  0x020,0x43F,0x43E,0x02D,0x440,0x443,0x441,0x441,
    	  0x43A,0x438,0x021,0
    
    This involves putting the contents of the second byte before the first since Windows is little endian.

    Any takers?

      Jul 02, 2005#2

      Well, I tried recording a macro on the quick ... apparently there is no command equivalent to the menu option "Copy Hex View".

      I guess I'll have to do this step manually, at least.

      tatwo
      tatwo

        Jul 02, 2005#3

        look at hexadecimal format in autohotkey scripting utility .. build an ahk script .. and run as User Tool in UEdit.