I'm using a velocity.properties in WEB-INF with following properties:
input.encoding=ISO-8859-2
output.encoding=ISO-8859-2

and everything works smoothly.

The issue where velocity.properties can be located has already been discussed in the 
list,
but anyway:

        /**
         * if the user has specified an external velocity configuration file, we'll 
want to search for it in the
         * following order
         *
         * 1. relative to the context path
         * 2. relative to /WEB-INF
         * 3. in the class path
         */

Fernando Martins

On Tuesday 24 February 2004 15:42, Anthony Eden wrote:
> I've had no problem displaying non-ASCII characters with Velocity and
> UTF-8.  I pass the encoding when I call mergeTemplate().  Is the problem
> perhaps in how WW uses Velocity?  Are there facilities in WW for setting
> the encoding when merging the template?
>
> -Anthony
>
> remigijus wrote:
> >After long time and problems with memeory at last I desided to switch to
> >velocity and after first try i got dashed. I see velocity is a pain when
> > it comes to support international charset's.
> >
> >Does anyone uses ww with velocity for international sites?
> >If yes how do they do that?
> >
> >Remis
> >
> >
> >
> >----- Original Message -----
>
> From: "Scott Farquhar" <[EMAIL PROTECTED]>
>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, February 24, 2004 6:31 AM
> >Subject: Re: [OS-webwork] velocity how to change character encoding
> >
> >>remigijus wrote:
> >>>Just started to use velocity instead of JSP and got first questions.
> >>>1. How to set caharacter encoding
> >>>2. How can I get array size from the velocity template.
> >>>
> >>>As I see it looks that freemarker does not have such problems.
> >>
> >>Um - what problems does freemarker not have?
> >>
> >>--
> >>
> >>ATLASSIAN - http://www.atlassian.com/
> >>Expert J2EE Software, Services and Support
> >>-------------------------------------------------------
> >>Confluence - the professional J2EE wiki - tried it yet?
> >>http://www.atlassian.com/confluence/
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> >>Build and deploy apps & Web services for Linux with
> >>a free DVD software kit from IBM. Click Now!
> >>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> >>_______________________________________________
> >>Opensymphony-webwork mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
> >-------------------------------------------------------
> >SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> >Build and deploy apps & Web services for Linux with
> >a free DVD software kit from IBM. Click Now!
> >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> >_______________________________________________
> >Opensymphony-webwork mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

-- 
"Everywhere is walking distance if you have the time" - Steven Wright



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to