velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santosh Puranshettiwar <sant...@wirkle.com>
Subject Re: Encoding problem with cyrillic characters
Date Fri, 21 Jul 2006 05:12:53 GMT
Hope this  does the job: -

VelocityEngine ve = new VelocityEngine();
Properties p = new Properties();
p.setProperty(VelocityEngine.INPUT_ENCODING, "UTF-8");          
p.setProperty(VelocityEngine.OUTPUT_ENCODING, "UTF-8");
ve.init(p);

Santosh.

KrustyDerClown wrote:
> Hello, 
>
> i have a problem with velocity. 
>
> I am wondering why my page cant display correct cyrillic characters. So i am looking
in Velocity code and i detect in the class RuntimeConstants the final static variable public
static final String ENCODING_DEFAULT = "ISO-8859-1"; 
>
> But i need the Encoding "UTF-8". 
>
> HOW can i change the encoding? 
>
> Thank you for your help. 
>
> Greets Oliver 
>
>   


---------------------------------------------------------------------
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