Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 59121 invoked from network); 16 May 2007 10:14: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:14:37 -0000 Received: (qmail 18985 invoked by uid 500); 16 May 2007 10:14:43 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 18925 invoked by uid 500); 16 May 2007 10:14: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 18916 invoked by uid 99); 16 May 2007 10:14: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:14: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:14:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 63A1C714043 for ; Wed, 16 May 2007 03:14:16 -0700 (PDT) Message-ID: <23504396.1179310456405.JavaMail.jira@brutus> Date: Wed, 16 May 2007 03:14:16 -0700 (PDT) From: "Ugo Cei (JIRA)" To: abdera-dev@incubator.apache.org Subject: [jira] Updated: (ABDERA-47) Incorrect character encoding in XML entry content In-Reply-To: <5919015.1179310216144.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ABDERA-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ugo Cei updated ABDERA-47: -------------------------- Affects Version/s: 0.3.0 > Incorrect character encoding in XML entry content > ------------------------------------------------- > > Key: ABDERA-47 > URL: https://issues.apache.org/jira/browse/ABDERA-47 > Project: Abdera > Issue Type: Bug > Affects Versions: 0.3.0 > 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.