Latman, Jay wrote:
> 
> 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
> 
> 
> 


Hello,

I have the same problem with setting correct encoding.After hours of search
I find this:

http://www.huihoo.org/jfox/jfoxsoaf/xref/org/huihoo/jfox/soaf/services/mail/MailMessageImpl.html

Take a look how this friend is setting charset at line 242!
It works for me, i hope it works for you too! ;)

-- 
View this message in context: 
http://www.nabble.com/Velocity-template-encoding-problem-tp8463487p20477763.html
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to