Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 762485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:24:09+00:00 2026-05-14T16:24:09+00:00

When I try to print a UTF-16 string in JSP, specifically Hebrew, it ends

  • 0

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. This isn’t a frame or anything like that. It’s just redirected output.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T16:24:10+00:00Added an answer on May 14, 2026 at 4:24 pm

    See if adding

    contentType="text/html; charset=UTF-8"
    

    to the JSP header (<%@page ...) helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to print a HTML String under Ubuntu 10.10 using Java, using this
Related to this question: "Fix" String encoding in Java My project encoding is UTF-8.
when I passed a Map<String,String> in velocity template file, and when try to print
try: html = urlopen('http://glbse.com/api/asset/' + asset.name) except: print 'error while updating the price of
When I try this code: if Verbose: print("Building internam Index for %d tile(s) ..."
I am trying to print a unicode string without the specific encoding hex in
I am facing an encoding problem (I guess) when I try to upload a
When I try to print an unicode string on my dev server it works
How to generate a KeyboardInterrupt in Windows? while True: try: print 'running' except KeyboardInterrupt:
When I try to print the $_SERVER variable from a command line php, it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.