Encoding Problem

2005-05-03 Thread Sandeep kamath
Hi, I am quite new to Velocity. My requirement is that I need to process a template that has greek characters in it. The current encoding used in my Java code is UTF-8 which doesn't work. Has anyone used Velocity for Greek and is yes, whats the encoding that needs to be used? Regards, Sandeep

Re: Encoding Problem

2005-05-03 Thread Daniel Dekany
Tuesday, May 3, 2005, 9:26:21 AM, Sandeep kamath wrote: Hi, I am quite new to Velocity. My requirement is that I need to process a template that has greek characters in it. The current encoding used in my Java code is UTF-8 which doesn't work. Has anyone used Velocity for Greek and is

Re: Encoding Problem

2005-05-03 Thread Andrew Mason
On Tuesday 03 May 2005 10:16, Daniel Dekany wrote: Tuesday, May 3, 2005, 9:26:21 AM, Sandeep kamath wrote: Hi, I am quite new to Velocity. My requirement is that I need to process a template that has greek characters in it. The current encoding used in my Java code is UTF-8 which

Re: Encoding Problem

2005-05-03 Thread Markos Charatzas
In velocity.properties use input.encoding=ISO-8859-7 or UTF-8, depending on the encoding of the templates. Regards, Markos On Tuesday 03 May 2005 10:26, Sandeep kamath wrote: Hi, I am quite new to Velocity. My requirement is that I need to process a template that has greek characters in

RE: Encoding Problem

2005-05-03 Thread Sandeep kamath
Hi Daniel, Many Thanks. I did try ISO-8859-7 but it still wont work. I get junk characters on the output stream. I used Velocity.getTemplate(template file name, ISO-8859-7); The template file is in ISO-8859-7 encoding. It still wont work. Regards, Sandeep -Original

Re: Encoding Problem

2005-05-03 Thread Daniel Dekany
Tuesday, May 3, 2005, 12:27:01 PM, Sandeep kamath wrote: Hi Daniel, Many Thanks. I did try ISO-8859-7 but it still wont work. I get junk characters on the output stream. I used Velocity.getTemplate(template file name, ISO-8859-7); The template file is in ISO-8859-7 encoding. It

Re: Encoding Problem

2005-05-03 Thread Daniel Dekany
Tuesday, May 3, 2005, 2:14:47 PM, Daniel Dekany wrote: Tuesday, May 3, 2005, 12:27:01 PM, Sandeep kamath wrote: Hi Daniel, Many Thanks. I did try ISO-8859-7 but it still wont work. I get junk characters on the output stream. I used Velocity.getTemplate(template file name,

RE: Encoding Problem

2005-05-03 Thread Sandeep kamath
Hi Daniel, I am using the FOP tool to generate a PDF out of the velocity output. I create a OutputStream object that I send alongwith the Velocity output to the FOP tool to generate a PDF. But the PDF doesn't show the greek characters. UTF-8 characters and UTF-8 encoding works fine but

Re: Encoding Problem

2005-05-03 Thread Daniel Dekany
Tuesday, May 3, 2005, 2:55:03 PM, Sandeep kamath wrote: Hi Daniel, I am using the FOP tool to generate a PDF out of the velocity output. I create a OutputStream object that I send alongwith the Velocity output to the FOP tool to generate a PDF. But the PDF doesn't show the greek

RE: Encoding Problem

2005-05-03 Thread Sandeep kamath
I did try that but no luck. I have the encoding at 3 places but doesn't seem to make any difference. -Original Message- From: Daniel Dekany [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 03, 2005 6:41 PM To: Sandeep kamath Cc: Velocity Users List Subject: Re: Encoding Problem Tuesday, May

new article on Velocity and Jython

2005-05-03 Thread Will Glass-Husain
Liked the article. http://www.onjava.com/pub/a/onjava/2005/04/27/restweb.html Nice job, Jason! WILL ___ Forio Business Simulations Will Glass-Husain [EMAIL PROTECTED] www.forio.com - To

Re: Encoding Problem

2005-05-03 Thread Christoph Reck
Hi Sandeep, the platform you are running probalby defaults to UTF-8 (aka Unix). Please check that the XML you are producing from velocity does have an XML header with the character encoding properly set (must match the encoding used for the velocity output writer). As Daniel stated, you will need

Re: Encoding Problem

2005-05-03 Thread Daniel Dekany
Tuesday, May 3, 2005, 3:38:17 PM, Sandeep kamath wrote: I did try that but no luck. I have the encoding at 3 places but doesn't seem to make any difference. But at which step go things wrong? Are you 100% sure the XML files are correct? (I suppose you can write them into files and see.) If so,

How to compare float number

2005-05-03 Thread jill han
I tried to compare a float number to a certain value like: #set($afloat=$floatObject.float) #set($count = 0) #if ($afloat = 4) #set($count = $count + 1) #end But it was always evaluated as false, $count is always 0. Thanks in advance.

Re: How to compare float number

2005-05-03 Thread Peter Harrison
On Wednesday 04 May 2005 03:47, jill han wrote: I tried to compare a float number to a certain value like: #set($afloat=$floatObject.float) #set($count = 0) #if ($afloat = 4) #set($count = $count + 1) #end But it was always evaluated as false, $count is always 0. Velocity doesn't

List of variables from template

2005-05-03 Thread Vos, Jerry R.
Hello all, I'm looking for a way to get a list of the variables referenced in a template. I found a message titled List of variables present in template? http://mail-archives.apache.org/mod_mbox/jakarta-velocity-user/200111.mbox/[EMAIL PROTECTED] with a comment from Geir Magnusson Jr. (I

List of variables from template

2005-05-03 Thread Brad Eisan
Hello all, I'm looking for a way to get a list of the variables referenced in a template. I found a message titled List of variables present in template? http://mail-archives.apache.org/mod_mbox/jakarta-velocity-user/ 200111.mbox/[EMAIL PROTECTED] with a comment from Geir Magnusson Jr. (I

Re: How to compare float number

2005-05-03 Thread Will Glass-Husain
The unreleased Velocity 1.5-dev (grab the nightly snapshot of the source code) handles floats and all other number types. Best, WILL - Original Message - From: Peter Harrison [EMAIL PROTECTED] To: Velocity Users List velocity-user@jakarta.apache.org Sent: Tuesday, May 03, 2005 1:52 PM

Re: List of variables from template

2005-05-03 Thread Shinobu Kawai
Hi Jerry, I'm looking for a way to get a list of the variables referenced in a template. I found a message titled List of variables present in template? http://mail-archives.apache.org/mod_mbox/jakarta-velocity-user/200111.mbox/[EMAIL PROTECTED] with a comment from Geir Magnusson Jr. (I