Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 27 May 2008 22:11:01 -0700,    group: microsoft.public.win32.programmer.international        back       


How to encode a string with UTF-8   
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.
date: Tue, 27 May 2008 22:11:01 -0700   author:   Bill

Re: How to encode a string with UTF-8   
> 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
date: Tue, 27 May 2008 22:43:13 -0700   author:   Mihai N.

Re: How to encode a string with UTF-8   
"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
date: Wed, 18 Jun 2008 09:56:50 +0200   author:   Giovanni Dicanio

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us