velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Mason <and...@assertis.co.uk>
Subject Re: Encoding Problem
Date Tue, 03 May 2005 09:46:51 GMT
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 doesn't work.
> >
> > Has anyone used Velocity for Greek and is yes, whats the encoding that
> > needs to be used?
>
> ISO-8859-7 (or maybe cp1253 if you are writing an MS Windows-only app).
> UTF-8 should work as well, just then you need a text editor that knows
> UTF-8 (for the editing of the templates), which can be a problem
> nowadays.
KDevelop /Kate and Jedit support UTF8

>
> Note that there are two technically separated encodings playing here:
> the encoding of the template files, and the encoding of the output, if
> you are using an OutputStream at the end. Maybe use ISO-8859-7 for both,
> or UTF-8 for the last.
>
> > Regards,
> > Sandeep

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message