![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Writing XML in UCS-2 encoding >Thread Next - Re: Writing XML in UCS-2 encoding Re: Writing XML in UCS-2 encodingTo: NULL Date: 7/3/2006 5:51:00 AM Anthony, Thanks for the response. But I am not using any standard apis for writing xml and my need is small and I just wanted to write it directly from a c program. So, how it should be encode? Is the following ok? <?xml version="1.0" encoding="UCS-2" ?> and every text between the tage, encode it in UCS2 format? [i precisely need ucs2 and not utf16]. Please let me know and if you have a sample ucs-2 file, please pass it on to me. Thanks in advance Sathish Anthony Jones wrote: > <satv73@g...> wrote in message > news:1151928970.989320.207710@m...... > > Hi all, > > I am a newbie in this topic. Can anybody tell me how can I write an > > xml with UCS-2 encoding? [or any pointer to sample C/C++ code would be > > great]. > > > > Thanks > > Sathish > > > > If your using the MSXML DOM then use the xml declare:- > > <?xml version="1.0" encoding="UTF-16" ?> > > When you save the DOM to a file it will be encoded as UTF-16 (ok it's not > UCS-2 but I'm guessing its what you are after). | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
