Hello Velocity team,

 

I'm trying to resolve a problem with velocity templates not being encoded
correctly.

I'm using Spring framework with VelocityView templates implementation.

 

When my controller creates a ModeAndView and passing an object containing
UTF-8 encoded data, the data is not being displayed properly when written by
the VelocityView.

If I try to display the same page, outside of velocity (by copying page
content into a file and using the same browser to display it, it displays
correctly).

The velocity.properties values are set (input.encoding=UTF-8,
output.encoding=UTF-8).

On the output, the response.encoding is set to UTF-8.

 

I've spent 4 days trying to fix this issue at no avail.

 

Please help.

 

Jay Latman

Reply via email to