Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 38673 invoked from network); 5 Sep 2005 09:01:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2005 09:01:57 -0000 Received: (qmail 42329 invoked by uid 500); 5 Sep 2005 09:01:55 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 41400 invoked by uid 500); 5 Sep 2005 09:01:51 -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 41387 invoked by uid 99); 5 Sep 2005 09:01:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 02:01:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.227.126.187] (HELO moutng.kundenserver.de) (212.227.126.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2005 02:02:04 -0700 Received: from [211.20.195.74] (helo=[127.0.0.1]) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKwpI-1ECCrJ3ab9-0001u1; Mon, 05 Sep 2005 11:01:45 +0200 Message-ID: <431C0974.1090006@matrix-web.de> Date: Mon, 05 Sep 2005 17:01:40 +0800 From: =?UTF-8?B?TWF0dGhpYXMgQnLDpHVlcg==?= Reply-To: newsletter@matrix-web.de User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [Configuration] Problems reading Chinese text from an XMLConfiguration - Problem solved, thanks References: <43185F66.8080601@web.de> <431968A7.2080405@t-online.de> In-Reply-To: <431968A7.2080405@t-online.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:db97d52989a6103bdc81fbf3f8dc5f8f X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello > XML allows you to specify the encoding of the document, otherwise it > defaults to ISO-8859-1. > [...] change it to if that isn't in the xml > document or the very first item, add it. The encoding was correctly specified in the XML document. The reason for the error was indeed the bug Oliver pointed at: > Note also that in configuration 1.1 final there was a bug that the > encoding was not always taken into account > (http://issues.apache.org/bugzilla/show_bug.cgi?id=34204). So you > might want to check out the newest version from SVN. With the current version of Commons Configuration (1.2 dev) the encoding is recognized correctly and all Chinese characters remain untouched. This works even without specifiying the encoding beforehand (by calling setEncoding() ). However, before saving a configuration to another XML document the setEncoding() method still has to be called or the file will not be stored in the desired UTF-8. Thanks alot for helping me so quickly. Best wishes, Matthias --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org