Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 65805 invoked from network); 11 Mar 2005 19:08:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 19:08:39 -0000 Received: (qmail 97681 invoked by uid 500); 11 Mar 2005 19:08:37 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 97647 invoked by uid 500); 11 Mar 2005 19:08:37 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 97628 invoked by uid 99); 11 Mar 2005 19:08:37 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from blossom.betaversion.org (HELO blossom.betaversion.org) (62.140.213.100) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Mar 2005 11:08:37 -0800 Received: by blossom.betaversion.org (Postfix, from userid 101) id A9FD910477B; Fri, 11 Mar 2005 19:08:24 +0000 (GMT) X-AntiVirus-Version: ClamAV 0.83/761 X-AntiSpam-Version: SpamAssassin 3.0.2 X-AntiSpam-Status: No (score=1.7/limit=7.5) X-AntiSpam-Rules: rcvd_in_njabl_dul, listed Received: from [192.168.1.102] (h-68-166-234-166.cmbrmaor.dynamic.covad.net [68.166.234.166]) by blossom.betaversion.org (Postfix) with ESMTP id 1E2EC104768 for ; Fri, 11 Mar 2005 19:08:24 +0000 (GMT) Message-ID: <4231ECB4.6030004@apache.org> Date: Fri, 11 Mar 2005 14:08:36 -0500 From: Stefano Mazzocchi Organization: Apache Software Foundation User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Flowscript encoding weirdness and a solution References: <4231EBE0.5050101@apache.org> In-Reply-To: <4231EBE0.5050101@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > Hi all, > > I encountered some weird things with a flowscript containing strings > with accented characters, saved in UTF-8. This is because the flow > interpreter uses the platform's default encoding to read script files. > And of course this default encoding isn't the same on Windows and Mac... > > To solve this, I added the possibility to specify the file's encoding as > a comment in the very first line of the script, e.g. > > // encoding = UTF-8 > function blah() > ... > > If no special comment exists, we fall back to the platform's default > encoding as of today. > > This works beautifully, and I'm thinking of adding this to 2.1 even if > (or especially because) the release is coming soon. how about //@ encoding = UTF-8 instead? so that we can discriminate between comments and 'metadata comments'? -- Stefano.