Re: Writing UNICODE CString to SQLServer UCS-2
There isn't really a "raw byte form". The characters are encoded somehow, in all forms.
http://en.wikipedia.org/wiki/Charact...odings_in_HTML
If you want to go back to a codepage encoded string:
Code:
CStringA cp_text = CW2AEX<>(wide_text, cp);
gg
Re: Writing UNICODE CString to SQLServer UCS-2
Quote:
Originally Posted by
Codeplug
Thanks again CodePlug.
You just provide the same codepage parameter(1251 cyrillic, in this instance)
but convert back to ASCII.