Hi Neil,
the processing instruction produced is
<?xml version="1.0" encoding="UTF-16 (LE)" standalone="no" ?>

so I think we have a bug there.
By the way, my way to tell xerces to produce UTF16 is:

doc->setEncoding(xercesc::XMLUni::fgUTF16LEncodingString);

Is this right? Or should I set some other params as well?

Greetings
Matthias

> -----Ursprüngliche Nachricht-----
> Von: Neil Graham [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 10. Juli 2003 21:41
> An: [EMAIL PROTECTED]
> Betreff: Re: Processing instruction 
> 
> 
> Hi Matthias,
> 
> IANA's official list of character set names [1] lists 
> UTF-16LE; neither
> UTF-16-LE nor UTF-16(LE) are listed.  Does Xerces-C really produce the
> latter, and not UTF-16LE?  I'm just wondering if you used the 
> parentheses
> as a kind of emphasis.  If we are using that formalism, I 
> think we have a
> bug, and I'd encourage you to open a Bugzilla entry about it.
> 
> Cheers,
> Neil
> [1]:  http://www.iana.org/assignments/character-sets
> 
> Neil Graham
> XML Parser Development
> IBM Toronto Lab
> Phone:  905-413-3519, T/L 969-3519
> E-mail:  [EMAIL PROTECTED]
> 
> 
> 
> 
> |---------+---------------------------->
> |         |           "Matthias        |
> |         |           Niggemeier"      |
> |         |           <[EMAIL PROTECTED]>     |
> |         |                            |
> |         |           07/10/2003 03:13 |
> |         |           PM               |
> |         |           Please respond to|
> |         |           xerces-c-dev     |
> |         |                            |
> |---------+---------------------------->
>   
> >-------------------------------------------------------------
> --------------------------------------------------------------
> ------------------|
>   |                                                           
>                                                               
>                     |
>   |       To:       <[EMAIL PROTECTED]>             
>                                                               
>                     |
>   |       cc:                                                 
>                                                               
>                     |
>   |       Subject:  Processing instruction                    
>                                                               
>                     |
>   |                                                           
>                                                               
>                     |
>   |                                                           
>                                                               
>                     |
>   
> >-------------------------------------------------------------
> --------------------------------------------------------------
> ------------------|
> 
> 
> 
> 
> Hi there!
> When I save an XML-File as UTF-16, the encoding is
> written as "UTF-16(LE)". But when I load the file
> in XMLSpy, it claims that the file is not well-formed
> and insists on "UTF-16-LE". Who is wrong, XMLSpy or
> Xerces?
> 
> Greetings
> Matthias
> 
> 
> 
> #### smime.p7s has been removed from this note on July 10 2003 by Neil
> Graham
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to