Hi, I have "AëBëC DöEöF" data in void buffer. How to encode this with UTF-8 but not with default encode? Thanks in advance. -- Thanks & Regards, Bill.
> I have "AëBëC DöEöF" data in void buffer. > How to encode this with UTF-8 but > not with default encode? What you posted is already utf-8. But between the newsgroup clients it is difficult to know who does what. What are the bytes in your void buffer? In order to encode *to* something you also have to know *from what* Also, I don't understand what you mean by "not with default encode" -- Mihai Nita [Microsoft MVP, Visual C++] http://www.mihai-nita.net ------------------------------------------ Replace _year_ with _ to get the real email
"Bill" ha scritto nel messaggio news:A4F6DEC1-9C1D-419E-8379-94C2CFA71340@microsoft.com... > I have "AëBëC DöEöF" data in void buffer. How to encode this with UTF-8 > but > not with default encode? If you need some sample code to use UTF-8 <-> UTF-16 conversions (I think that you mean "Unicode UTF-16" with "default Unicode"), you may consider downloading this: http://code.msdn.microsoft.com/UTF8Helpers There are routines for UTF-8 <-> UTF-16 conversions. (There are also classes to read/write files in UTF-8 and convert content in UTF-16 inside application boundaries.) HTH, Giovanni