How to convert UTF-8 string to Unicode string
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How to convert UTF-8 string to Unicode string

Hybrid View

  1. #1
    Join Date
    Nov 2010
    Posts
    45

    How to convert UTF-8 string to Unicode string

    I am using Visual Studio 2008. I just wonder if there are any library function in Windows SDK or MFC, or from third-parties, that can convert a UTF-8 string into Windows Unicode string(used in CString object).

    Can MultiByteToWideChar or ATL String conversion macro like A2W to the conversion?

    Thank you.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,926

    Re: How to convert UTF-8 string to Unicode string

    Did you try to read the article MultiByteToWideChar function? The answer is evident.
    Best regards,
    Igor

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center