CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Ottawa, Ont
    Posts
    120

    Encoding unicode

    This is cod that I found works for translating Hex (unicode) to a character... in this case (á)



    CString srcStr;
    CString HexText;
    srcStr = "0xe1";

    DWORD uVal = strtol( srcStr, NULL, 0);
    HexText = uVal;




    Now how can I translate or encode (á) back to "0xe1" so I can display both Hex value and actual character?

    Thanks...

    Rick


  2. #2
    Join Date
    May 1999
    Location
    Ottawa, Ont
    Posts
    120

    Encoding unicode

    This is cod that I found works for translating Hex (unicode) to a character... in this case (á)



    CString srcStr;
    CString HexText;
    srcStr = "0xe1";

    DWORD uVal = strtol( srcStr, NULL, 0);
    HexText = uVal;




    Now how can I translate or encode (á) back to "0xe1" so I can display both Hex value and actual character?

    Thanks...

    Rick


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured