Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 82175 invoked from network); 4 Apr 2008 12:04:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2008 12:04:08 -0000 Received: (qmail 86759 invoked by uid 500); 4 Apr 2008 12:04:07 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 86703 invoked by uid 500); 4 Apr 2008 12:04:07 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 86692 invoked by uid 99); 4 Apr 2008 12:04:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 05:04:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 12:03:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 74694234C0B9 for ; Fri, 4 Apr 2008 05:01:24 -0700 (PDT) Message-ID: <1310691013.1207310484462.JavaMail.jira@brutus> Date: Fri, 4 Apr 2008 05:01:24 -0700 (PDT) From: =?utf-8?Q?J=C3=B6rg_Heinicke_=28JIRA=29?= To: dev@cocoon.apache.org Subject: [jira] Updated: (COCOON-2063) NekoHTMLTransformer needs to set the default-encoding of the current system to work properly with UTF-8 In-Reply-To: <14024430.1178788575295.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COCOON-2063?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] J=C3=B6rg Heinicke updated COCOON-2063: ---------------------------------- Fix version (Component): Parent values: Blocks: HTML(10240). (was: Pa= rent values: Blocks: HTML(10240). Level 1 values: 1.0.0-RC1(10271). ) Fix Version/s: (was: 2.2-dev (Current SVN)) Also had to revert the fix for Cocoon 2.2 since Charset.defaultCharset() is= only available on Java 5. > NekoHTMLTransformer needs to set the default-encoding of the current syst= em to work properly with UTF-8 > -------------------------------------------------------------------------= ------------------------------ > > Key: COCOON-2063 > URL: https://issues.apache.org/jira/browse/COCOON-2063 > Project: Cocoon > Issue Type: Bug > Components: Blocks: HTML > Affects Versions: 2.1.11, 2.2 > Reporter: Alexander Klimetschek > Assignee: J=C3=B6rg Heinicke > Priority: Minor > Attachments: NekoHTMLGenerator_BRANCH2_1_X.patch, nekohtmltransfo= rmer-encoding.patch > > > The NekoHTMLTransformer uses the cyberneko HTMLConfiguration for tidying = html. Unfortunately it does not use the system's current encoding as defaul= t, instead you have to set a property to set your encoding. But this varies= from one OS to another, so the best solution is to set this property autom= atically in the NekoHTMLTransformer depending on what Java uses as defaultC= harset: > config.setProperty("http://cyberneko.org/html/properties/defa= ult-encoding", Charset.defaultCharset().name()); --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.