Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 57218 invoked from network); 16 May 2007 10:10:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2007 10:10:37 -0000 Received: (qmail 15121 invoked by uid 500); 16 May 2007 10:10:44 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 15059 invoked by uid 500); 16 May 2007 10:10:43 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 15039 invoked by uid 99); 16 May 2007 10:10:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 03:10:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 03:10:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B17071403A for ; Wed, 16 May 2007 03:10:16 -0700 (PDT) Message-ID: <5919015.1179310216144.JavaMail.jira@brutus> Date: Wed, 16 May 2007 03:10:16 -0700 (PDT) From: "Ugo Cei (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Created: (ABDERA-47) Incorrect character encoding in XML entry content MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Incorrect character encoding in XML entry content ------------------------------------------------- Key: ABDERA-47 URL: https://issues.apache.org/jira/browse/ABDERA-47 Project: Abdera Issue Type: Bug Reporter: Ugo Cei Sometimes, when setting XML content for an entry which contains non-ASCII characters, there is some apparent corruption of data when reading back the same content. Here's a test that demonstrates this: {code} public void testAbderaEncodingHandling() throws Exception { Abdera abdera = new Abdera(); Entry entry = abdera.newEntry(); entry.setId("http://example.com/entry/1"); entry.setTitle("Whatever"); entry.setUpdated(new Date()); Content content = entry.getFactory().newContent(Content.Type.XML); String s = "" + new Character((char) 224) + ""; content.setValue(s); content.setMimeType("application/xml+whatever"); entry.setContentElement(content); assertNotNull(entry.getContent()); assertEquals(s, entry.getContent()); } {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.