Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@www.apache.org Received: (qmail 83403 invoked from network); 2 Dec 2003 02:37:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Dec 2003 02:37:43 -0000 Received: (qmail 86749 invoked by uid 500); 2 Dec 2003 02:37:24 -0000 Delivered-To: apmail-jakarta-velocity-user-archive@jakarta.apache.org Received: (qmail 86434 invoked by uid 500); 2 Dec 2003 02:37:22 -0000 Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Velocity Users List" Reply-To: "Velocity Users List" Delivered-To: mailing list velocity-user@jakarta.apache.org Received: (qmail 86420 invoked from network); 2 Dec 2003 02:37:21 -0000 Received: from unknown (HELO folacin.esha.com) (209.210.229.6) by daedalus.apache.org with SMTP; 2 Dec 2003 02:37:21 -0000 Received: from iron (iron.esha.com [209.210.229.8]) by folacin.esha.com (8.12.6p3/8.12.6) with ESMTP id hB22bSL0038612 for ; Mon, 1 Dec 2003 18:37:30 -0800 (PST) (envelope-from nathan@esha.com) Received: from RATBERT (63-229-133-43.ptld.qwest.net [63.229.133.43]) by iron.esha.com (iPlanet Messaging Server 5.2 (built Feb 21 2002)) with ESMTPA id <0HP800L1MXYE96@iron.esha.com> for velocity-user@jakarta.apache.org; Mon, 01 Dec 2003 18:37:27 -0800 (PST) Date: Mon, 01 Dec 2003 18:37:27 -0800 From: Nathan Bubna Subject: Re: Character encoding issues with the new tiles tool To: Velocity Users List Message-id: <01d501c3b87d$3ab50330$667ba8c0@zeus.esha.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook Express 6.00.2800.1158 Content-type: text/plain; charset=windows-1255 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <03B025829E959A449AD4D9548BF1BD320F98B3@SHUSH.partnergsm.co.il> X-Spam-Status: No, hits=-100 required=8 X-Scanned-By: MIMEDefang 2.37 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Slavik Markovich said: > I'm trying to use the new tiles tool and having problems with > Hebrew characters. > To be specific, I've set up velocity to use Cp1255 (Hebrew-windows) > or ISO-8859-8 in the velocity properties file. > > If I add Hebrew text in the main template or not use the tiles tool, > everything is fine. > If I'm using tiles and have Hebrew in one of the tiles, it appears as > question marks. if the Hebrew works fine in the main template, but not in a tile definition, then it sounds to me like an issue with Tiles. i don't know much about Tiles though, so i'm really not sure. i was kinda hoping someone more familiar with Tiles could point you in the right direction. here's a question, can you do this with JSP? also, have you tried asking for help with this on the struts-user list? someone there may have a better idea of what's going on. > I believe it has something to do with double translation that happens > when first the velocity tile is parsed and included (Hebrew characters > get translated) and then the template is parsed and characters are > again translated but this is just a guess. no, the TilesTool doesn't work like that. the output of a call to $tiles.get('my_tile') is not parsed as part of the template it is found in. in other words, each tile is parsed and rendered separately, the result of which is included *as-is* in the final output. hmm. could this problem have something to do with a tile being in one encoding and the template it's included in being in an incompatible one? > I'm using jdk1.3.1 on windows with velocity 1.3.1 and > velocity-tools 1.1 beta. Disclaimer: i am not an expert in Tiles or encoding issues. so, if anything i said above is nonsense, i apologize. Nathan Bubna nathan@esha.com --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-user-help@jakarta.apache.org