Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 23334 invoked from network); 26 May 2000 17:54:17 -0000 Received: from excalibur.wellengaged.com (209.10.57.13) by locus.apache.org with SMTP; 26 May 2000 17:54:17 -0000 Received: from ws012 ([209.10.57.7]) by excalibur.wellengaged.com (Post.Office MTA v3.5.3 release 223 ID# 0-60469U200L100S0V35) with SMTP id com for ; Fri, 26 May 2000 10:54:13 -0700 From: "Corey Krehel" To: Subject: RE: Anyone using XMLForm? Date: Fri, 26 May 2000 10:54:51 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <3917DFC5.4EB504A1@denic.de> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N We are working on a site which will require a large amount of work with forms. Where can I find more information about XMLForm? Corey Krehel Web Development Prospero Technologies 415.339.7000 x211 corey@wellengaged.com www.prosperotechnologies.com -----Original Message----- From: ulim [mailto:ulim]On Behalf Of Ulrich Mayring Sent: Tuesday, May 09, 2000 2:52 AM To: cocoon-users@xml.apache.org Subject: Re: Anyone using XMLForm? svenk@Informatik.Uni-Bremen.DE wrote: > > Encoding: In order to support german "umlauts" in data.xml from the > sample I changed the encoding in the xml-pi to Latin1. When I first edit > the file using XMLForm, this works fine. However, after the > adding/editing process, the encoding is set back to UTF-8 but the > characters are not converted properly. In consequence, Xerces chockes on > illegal characters on this file. You can quick'n'dirty hack it by adding after line 166 the line: format.setEncoding("ISO-8859-1"); // or whatever encoding you want > Thus, it would be nice if XMLForm remembers the original encoding type. > Or even better, there would be something like xmlform:encoding. Yes, but that is a bit more complex to implement. You can get the current encoding by adding these two lines after line 89: InputSource inpSrc = new InputSource(filename); String encoding = inpSrc.getEncoding(); Then you can later write format.setEncoding(encoding); This works, but you must be aware of two special cases: a) in the case of type="html" what encoding do we write? (currently: none) b) what encoding do we assume if there is none specified? So, all in all, it was getting a little too hairy for me. I'll just hard-code ISO-8859-1, because my XMLForm application doesn't need anything else. Ulrich -- Ulrich Mayring DENIC eG, Systementwicklung --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org