You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by ??sta? Ste????? <cs...@aias.gr> on 2001/01/26 09:16:54 UTC

Charset in velocity templates

Any ideas how can I set the ContentType of the output that Velocity
produces?

I am trying to use a different charset than the 8859-1 but does not seem to
work.

Any ideas?
Is there any property I can set?



Re: Charset in velocity templates

Posted by ??sta? Ste????? <cs...@aias.gr>.
Thanks, now it works fine
----- Original Message -----
From: "Geir Magnusson Jr." <ge...@optonline.net>
To: <ve...@jakarta.apache.org>
Sent: Friday, January 26, 2001 12:26 PM
Subject: Re: Charset in velocity templates


> ??sta? Ste????? wrote:
> >
> > Any ideas how can I set the ContentType of the output that Velocity
> > produces?
> >
> > I am trying to use a different charset than the 8859-1 but does not seem
to
> > work.
> >
> > Any ideas?
> > Is there any property I can set?
>
> If you are using the VelocityServlet base class, take a look to see how
> that is handled.
>
> The revelevant default properties are :
>
> template.encoding=8859_1
> default.contentType=text/html
>
> and are found in
> org/apache/velocity/runtime/defaults/velocity.properties in the source
> tree
>
> geir
>
> --
> Geir Magnusson Jr.                               geirm@optonline.com
> Velocity : it's not just a good idea. It should be the law.
> http://jakarta.apache.org/velocity


Re: Charset in velocity templates

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
??sta? Ste????? wrote:
> 
> Any ideas how can I set the ContentType of the output that Velocity
> produces?
> 
> I am trying to use a different charset than the 8859-1 but does not seem to
> work.
> 
> Any ideas?
> Is there any property I can set?

If you are using the VelocityServlet base class, take a look to see how
that is handled.

The revelevant default properties are :

template.encoding=8859_1
default.contentType=text/html

and are found in
org/apache/velocity/runtime/defaults/velocity.properties in the source
tree

geir

-- 
Geir Magnusson Jr.                               geirm@optonline.com
Velocity : it's not just a good idea. It should be the law.
http://jakarta.apache.org/velocity