|
-
May 11th, 1999, 02:37 PM
#1
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
-
May 11th, 1999, 02:37 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|