Do you (or framework) put
response.setContentType("text/html; charset=UTF-8") to
response outputstream. Doing so make sure clients
interprets bytes to strings correctly.

And you could try using UnicodeFileResourceLoader
patch.
https://issues.apache.org/jira/browse/VELOCITY-191
* save all .vm text files as UTF-8 with BOM marker
(windos notepad can do it)

--- Will Glass-Husain <[EMAIL PROTECTED]> wrote:
> When you view the displayed page in your browser,
> what encoding does
> the browser think the page is in?  (in Firefox, this
> is View/Character
> Encoding).  If you set it manually in the browser to
> UTF-8, does it
> display correctly?
> 
> WILL
> 
> On 1/19/07, Latman, Jay <[EMAIL PROTECTED]> 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


 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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

Reply via email to