Thanks for the suggestions, Ivan and David!
 
In my first tries, both the XML and XSD files were encoded in UTF-8.
 
But after saving both the files in Unicode using Windows' Notepad (Little 
Endian), it worked!
 
Rafael Sousa

        -----Mensagem original----- 
        De: Ivan Bogouchev / Иван Богушев [mailto:[EMAIL PROTECTED] 
        Enviada: qui 29-09-2005 14:37 
        Para: [email protected] 
        Cc: 
        Assunto: Re: Why doesn't Xerces-C++ work with UTF-16 ?
        
        

        I think you need an (text/xml) editor that can save your xsd file in
        utf-16 first
        
        2005/9/29, Rafael Sousa (Ext_Altior) <[EMAIL PROTECTED]>:
        > Hi all!
        >
        > When running the samples in the Xerces-C++ library, namely SAX2Count 
(with validation), I get the following error:
        >
        > Warning at file /home/rsousa/XML_Schema.xsd, line 1, char 40
        > Message: Encoding (UTF-16, from XMLDecl or manually set) contradicts 
the auto-sensed encoding, ignoring it
        >
        > In XML_Schema.xsd, the first line is:
        >
        > <?xml version="1.0" encoding="UTF-16"?>
        >
        > If I replace it with UTF-8, no error occurs. But I really need 
UTF-16...
        >
        > Does anyone know why does this happen? Shouldn't Xerces-C++ 
automatically use UTF-16 encoding?
        >
        > Thanks in advance,
        >
        > Rafael Sousa
        >
        
        
        --
        --ivan--
        

Reply via email to