Title: RE: Encoding problems

Thanks.

Siehnai Williamson
DocuCorp International, Inc.

    -----Original Message-----
    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
    Sent:   Monday, August 20, 2001 3:41 PM
    To:     [EMAIL PROTECTED]
    Subject:        Re: Encoding problems


    No wonder the parser thinks this file is UTF-8 -- it is.  Or at least it's
    not UTF-16.  One look with a binary editor is enough to figure that out.
    Any of these encodings will probably work just fine:

       UTF-8
       US-ASCII
       ISO-8859-1

    It's just an ASCII file, unless some mailer program munged what you posted.
    Who told you it was encoded in UTF-16?

    Dave



                                                                                                                     
                          "Williamson,                                                                               
                          Siehnai"                 To:      "'[EMAIL PROTECTED]'"                          
                          <swilliamson@doc         <[EMAIL PROTECTED]>                                     
                          ucorp.com>               cc:      (bcc: David N Bertoni/CAM/Lotus)                         
                                                   Subject: Encoding problems                                        
                          08/20/2001 04:21                                                                           
                          PM                                                                                         
                          Please respond                                                                             
                          to xerces-c-dev                                                                            
                                                                                                                     
                                                                                                                     



    Here's the file I'm testing with.


    <<Policy.xml>>






          -----Original Message-----
          From:   Williamson, Siehnai [SMTP:[EMAIL PROTECTED]]
          Sent:   Monday, August 20, 2001 3:14 PM
          To:     '[EMAIL PROTECTED]'
          Subject:        Encoding problems


          Hi,


          I'm trying to parse (SAX parser) a document utilizing the UTF-16
          encoding, but I keep getting an error.
          It appears that the line in XMLReader::XMLReader()


          ������� fEncoding = XMLRecognizer::basicEncodingProbe(...)


          always returns fEncoding = UTF-8, eventhough the document's encoding
          is UTF-16.� Then I get a contradictory encoding error message.�� This
          also happens when I use UCS-4 encoding.�� I am currently using Xerces
          version 4.0.


          My document header does specify the "UTF-16" encoding, and it still
          throws an error.� Does the document have to look a certain way for it
          to work?


          Is anyone having the same errors?� Please help.





          Siehnai Williamson
          DocuCorp International, Inc.
          ---------------------------------------------------------------------
          To unsubscribe, e-mail: [EMAIL PROTECTED]
          For additional commands, e-mail: [EMAIL PROTECTED]








    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to