You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2002/04/03 17:01:44 UTC
Re: Regd: Japanese characters
On 4/3/02 10:05 AM, "Vanitha.S@lntinfotech.com" <Va...@lntinfotech.com>
wrote:
>
> Hi,
>
> I am using velocity for my web application project. Currently i am
> facing a problem when i am reading some contents from a file which contains
> japanese characters and outputting it to a template. The screen comes up
> with junk characters. I tried to debug and find where actually the problem
> is.. Everything seems to be ok until when i send it to the Context object.
>
> I had attached the java file and the template file below. Need an Urgent
> help.
>From the looks of it, in MyServlet.java, it appears you haven't done proper
escaping of the unicode characters. That's the first problem - I see it as
"????"
Next, are you setting the right output encoding in the servlet?
>
> (See attached file: MyTemp.vm)(See attached file: MyServlet.java)(See
> attached file: MyData.java)
>
>
> Thanks in Advance
>
>
> with regards
> Vanitha
> (See attached file: MyTemp.vm)
> (See attached file: MyServlet.java)
> (See attached file: MyData.java)
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
The obvious solutions are challenging
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>