Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • so how can I convert std::string to std::wstring, I really need it. because I want to compare two unicode strings so they must be in wstring format Commented Aug 22, 2011 at 20:48
  • 1
    @aliakbarian: you do not understand what is unicode. Depending on what comparison you need, either std::string will work, or you must use an external unicode library written by experts (see ICU). Commented Aug 22, 2011 at 20:50
  • 1
    @aliakbarian, you asked this yesterday and got two good answers. Commented Aug 22, 2011 at 20:57
  • 1
    @aliakbarian: that's because you don't explain what's the real problem. Also AFAIR pugixml has pugi::as_wide function. Commented Aug 22, 2011 at 21:14
  • 1
    @aliakbarian: repeating the same quesiton until you get an answer you like is not how StackOverflow works. Commented Aug 22, 2011 at 21:16