This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: UTF-8 support - char or wchar_t?


Martin Sebor <sebor@roguewave.com> writes:

[...]

> The most portable way to do this, though, is to forget about codecvt
> and use iconv directly.

Thanks! What you are suggesting is to use a std::wostringstream,
extract a std::wstring with str(), put the data inside a std::string
and use an iconv wrapper to convert from the wchar_t encoding to
UTF-8, right? I'll try that.

-- 
Ole Laursen
http://www.cs.aau.dk/~olau/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]