Click here to Skip to main content
15,921,250 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear all,

I have a CSTring object. How can I change encoding of this string (UTF8, UTF16...)

Thanks,
Ankata
Posted
Comments
[no name] 22-Feb-11 1:29am    
what do you exactly mean by enncoding of string pls provide details

1 solution

Here[^] you will find almost anything related to CString class. It is a great reference from Dr. Joseph M. Newcomer.
The answer of your question is in Unicode and CStrings[^] section (examine the conversion tables).
After that read the UTF-7 and UTF-8 in CStrings[^] section (here you will find out that some CString methods may produce unexpected results).
 
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