Printing UTF-16 strings in JSP is outputted as HTML encoding (&#xxxx)

Posted by Ori Osherov on Stack Overflow See other posts from Stack Overflow or by Ori Osherov
Published on 2010-05-04T09:47:51Z Indexed on 2010/05/04 10:28 UTC
Read the original article Hit count: 207

Filed under:

Hello, When I try to print a UTF-16 string in JSP, specifically Hebrew, it ends up showing up as HTML encoding (&#xxxx).

This problem occurs because I print an array of variables into the web page and then parse them. The variables are all UTF-16 strings, but once the servlet prints the variables, it becomes translated to HTML encoding. Is there any way to get rid of the encoding?

Thanks in advance

Edit for a bit more background:

The JSP that I'm printing is not the entirety of the page. It's used in a manner I don't quite understand by a server app which prints the JSPs output into its built in page. As a result, I can't, for instance, use a tag because the will have already been placed somewhere else. This isn't a frame or anything like that. It's just redirected output.

© Stack Overflow or respective owner

Related posts about jsp