Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 52066 invoked from network); 28 Dec 2006 10:30:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Dec 2006 10:30:42 -0000 Received: (qmail 89384 invoked by uid 500); 28 Dec 2006 10:30:43 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 89334 invoked by uid 500); 28 Dec 2006 10:30:43 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 89323 invoked by uid 99); 28 Dec 2006 10:30:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Dec 2006 02:30:43 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_BOUND_NEXTPART X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [194.154.194.71] (HELO srs2na11.bgl.lu) (194.154.194.71) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 28 Dec 2006 02:30:33 -0800 Received: from spmwf02l.luinternal.fortis.bank (unverified) by srs2na12.domain (Content Technologies SMTPRS 4.2.10) with ESMTP id for ; Thu, 28 Dec 2006 11:33:51 +0100 Received: from SPMWB02L.luinternal.fortis.bank ([10.172.252.140]) by spmwf02l.luinternal.fortis.bank with Microsoft SMTPSVC(6.0.3790.0); Thu, 28 Dec 2006 11:29:59 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-4b30d49c-7e57-4ac0-a18f-e52808103457" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: [Urgent] UTF-8 encoding problem Date: Thu, 28 Dec 2006 11:30:07 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Urgent] UTF-8 encoding problem Thread-Index: AccqayAnmSNCBSyOSkiXcA4x968N8w== From: "DECAFFMEYER MATHIEU" To: X-OriginalArrivalTime: 28 Dec 2006 10:29:59.0197 (UTC) FILETIME=[201CBCD0:01C72A6B] X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPartTM-000-4b30d49c-7e57-4ac0-a18f-e52808103457 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C72A6B.24FDE813" ------_=_NextPart_001_01C72A6B.24FDE813 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am using Jakarta Configuration to manipulate some XML files. I have the following error when I open one of the files : org.apache.commons.configuration.ConfigurationException: Octet 2 incorrect = dans la s=E9quence UTF-8 =E0 3-octets. at org.apache.commons.configuration.XMLConfiguration.load(XMLConfiguration= .java:620) at org.apache.commons.configuration.XMLConfiguration.load(XMLConfiguration= .java:578) at org.apache.commons.configuration.XMLConfiguration$XMLFileConfigurationD= elegate.load(XMLConfiguration.java:1045) at org.apache.commons.configuration.AbstractFileConfiguration.load(Abstrac= tFileConfiguration.java:280) [...] Caused by: java.io.UTFDataFormatException: Octet 2 incorrect dans la s=E9qu= ence UTF-8 =E0 3-octets. at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source) at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) [...] The headlines of the file is : ]> [...] I have an XML with exactly the same lines at the top, and I have no problem with this one : ]> [...] What do u suggest me to do ? Thank u for any help ! Will be greatly appreciated ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Internet communications are not secure and therefore Fortis Banque Luxembou= rg S.A. does not accept legal responsibility for the contents of this messa= ge. The information contained in this e-mail is confidential and may be leg= ally privileged. It is intended solely for the addressee. If you are not th= e intended recipient, any disclosure, copying, distribution or any action t= aken or omitted to be taken in reliance on it, is prohibited and may be unl= awful. Nothing in the message is capable or intended to create any legally = binding obligations on either party and it is not intended to provide legal= advice. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------_=_NextPart_001_01C72A6B.24FDE813 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable [Urgent] UTF-8 encoding problem

Hi,

I am using Jakarta Configuration to manipu= late some XML files.
I have the following error when I open on= e of the files :


org.apache.commons.configuration.Con= figurationException: Octet 2 incorrect dans la s=E9quence UTF-8 =E0 3-octet= s.
        at org.apache.commons.configuration.XMLConfiguration.load(XMLConfig= uration.java:620)
        at org.apache.commons.configuration.XMLConfiguration.load(XMLConfig= uration.java:578)
        at org.apache.commons.configuration.XMLConfiguration$XMLFileConfigu= rationDelegate.load(XMLConfiguration.java:1045)

        at org.apache.commons.configuration.AbstractFileConfiguration.load(A= bstractFileConfiguration.java:280)
[...]




Caused by: java= .io.UTFDataFormatException: Octet 2 incorrect dans la s=E9quence UTF-8 =E0 = 3-octets.
        at org.apache.xerces.impl.io.UTF8Reader.invali= dByte(Unknown Source)
        at org.apache.xerces.impl.io.UTF8Reader.read(U= nknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.loa= d(Unknown Source)
[...]



The headlines of the = file is :

<?xml version=3D&q= uot;1.0" encoding=3D"UTF-8"?>
<!DOCTYPE configu= ration [
<!ENTITY amp &quo= t;&#x26;">
<!ENTITY lt "= ;&#x3C;">
<!ENTITY minus &q= uot;&#45;">
]>
[...]


I have an XML with ex= actly the same lines at the top,
and I have no proble= m with this one :
<?xml version=3D&= quot;1.0" encoding=3D"UTF-8"?>
<!DOCTYPE configu= ration [
<!ENTITY amp &quo= t;&#x26;">
<!ENTITY lt "= ;&#x3C;">
<!ENTITY minus &q= uot;&#45;">
]>
[...]


What do u suggest me = to do ?

Thank u for any help = ! Will be greatly appreciated !



=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Internet communications are not secure and therefore Fortis Banque Luxembou= rg S.A. does not accept legal responsibility for the contents of this messa= ge. The information contained in this e-mail is confidential and may be leg= ally privileged. It is intended solely for the addressee. If you are not th= e intended recipient, any disclosure, copying, distribution or any action t= aken or omitted to be taken in reliance on it, is prohibited and may be unl= awful. Nothing in the message is capable or intended to create any legally = binding obligations on either party and it is not intended to provide legal= advice.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
------_=_NextPart_001_01C72A6B.24FDE813-- ------=_NextPartTM-000-4b30d49c-7e57-4ac0-a18f-e52808103457 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org ------=_NextPartTM-000-4b30d49c-7e57-4ac0-a18f-e52808103457--