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 7948139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:38:11+00:00 2026-06-04T01:38:11+00:00

I am facing issue while trying into insert special symbols like pound character (£

  • 0

I am facing issue while trying into insert special symbols like pound character (£ or ₤ ) in DB. These are getting displayed as ?? in the front end

We use tomcat as app server and have below configration in that

URIEncoding="UTF-8"

Before inserting the text to DB we are performing the below check

String Text = new String(request.getParameter("Text").getBytes("8859_1"),"UTF-8");

I dont have much idea about what the above code does

But when i remove "URIEncoding="UTF-8" from tomcat server.xml,these characters are loading fine

According to http://confluence.atlassian.com/display/DOC/Configuring+Tomcat%27s+URI+encoding by default tomcat uses "ISO-8859-1" encoding

can anyone help on this please?

Thanks in Advance

  • 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-06-04T01:38:13+00:00Added an answer on June 4, 2026 at 1:38 am

    You’re asking Tomcat to give you values formatted as UTF-8, then converting that to a byte array based on ISO-8859-1 character set code points. You’re then directly casting those values back to UTF-8 code points, which is resulting in the characters getting garbled.

    Just remove the conversion stuff, leave the URIEncoding="UTF-8" entry in your config, and it should work fine.

    Also, keep in mind that your output encoding is important. If you’re sending back UTF-8 encoded pages, but have the encoding set differently in the page’s meta tags or the Content-Encoding HTTP response header, you’ll get garbled results for certain characters.

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

Sidebar

Related Questions

I am facing a class resolution issue while trying to make my architecture flexible.
I'm facing the same issue, while trying for cross-domain request. Situation is strange, my
I am facing an issue while I am trying to deserialize a JSON array
I am facing an issue while trying to use the spring android framework. I
More precisely, I am facing this issue while trying to install https://github.com/barraponto/thacker-profile (commit 75c693581796eddae5fc39870dfcc2647e00c81b
I am facing an issue while trying to install the requirements for my django
I am facing an issue while trying to reload rules dynamically. Starting with the
I am facing issue while i load a form on ajax request. i followed
I am facing an issue regarding EF code first version while mapping one entity
I am facing an issue while streaming PDF file on a Java EE web

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.