Programming and other things
Thanks a lot. It solves my problem.Changsong
Very neat code !! Solved my problem. Many Thanks
This causes problems with accented characters.For example, try converting "Música" from std::string to std::wstring
obviously that wont work. You can only go from wstring to string if the wstring only contains ASCII characters
so how does one convert accented strings from multibyte to unicode?
Thanks it is working. But I create a std::string like this.std::string s("response_brücke"); and convert it like thisstd::wstring ws;ws.assign(s.begin(), s.end());But the value of ws is not correct. How can we convert the value of "s" into "ws".
This method is used only to convert string where characters are within ASCII character set. I don't know for method where characters like ü can be converted to something within ASCII character set. Maybe there is some third party library but I don't know.
Thanks, I got the solutionstd::wstringstream ws;ws << s.c_str();std::wstring sLogLevel = ws.str();
Thanks a lot. Nowhere else I found such clean and properly working solution. I found it very useful.
Thanks a lot. This solved my problem too!
Post a Comment