CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 17 of 17
  1. #16
    Join Date
    Nov 2003
    Posts
    1,716

    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

  2. #17
    Join Date
    Apr 2005
    Posts
    78

    Smile Re: Writing UNICODE CString to SQLServer UCS-2

    Quote Originally Posted by Codeplug View Post
    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
    Thanks again CodePlug.

    You just provide the same codepage parameter(1251 cyrillic, in this instance)
    but convert back to ASCII.

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Tags for this Thread

Bookmarks

Posting Permissions

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



HTML5 Development Center

Click Here to Expand Forum to Full Width