Click here to Skip to main content
15,849,494 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Programmers,

May be very simple question..infact I am new in unicode world.

How to convert unsigned char datatype to unicode equivalent.

As I understand, tchar.h has all unicode related datatypes, we need to use this header file and replace all char with TCHAR...but I am not sure about unsigned char??

Should I change as unsigned TCHAR????




Regards,
Joy
Posted
Comments
CPallini 22-Jul-13 5:27am    
Usually unsigned char buffers contain binary data. Why do you want to convert such data into UNICODE?

1 solution

There is a definition for _TUCHAR in tchar.h for unsigned character, but it will depend on your usage whether this is the right type.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900