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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:26:57+00:00 2026-05-23T08:26:57+00:00

I have some fields with special characters. When I pass those fields from JSP

  • 0

I have some fields with special characters. When I pass those fields from JSP by submiting the form to Springs Controller then it is displayed as shown below.

á - á
é - é
í - Ã
ó - ó
ú - ú
ñ - ñ

I tried few things like putting some encoding in web.xml,

<filter>
    <filter-name>encodingFilter</filter-name>
    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    <init-param>
        <param-name>encoding</param-name>
        <param-value>UTF-8</param-value>
    </init-param>
    <init-param>
        <param-name>forceEncoding</param-name>
        <param-value>true</param-value>
    </init-param>
</filter>

<filter-mapping>
    <filter-name>encodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

Encoding in Controller like,

request.setCharacterEncoding("UTF-8");

Still I am not able to solve the issue. Please Help.

Thanks in advance.

Note: I checked some of the questions related this question in our stackoverflow, Still not able to find it. Character encoding JSP -displayed wrong in JSP but not in URL: "á » á é » é"

  • 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-23T08:26:57+00:00Added an answer on May 23, 2026 at 8:26 am

    This filter works for POST requests only. For GET requests you’d need to configure it at servletcontainer level. In case of for example Apache Tomcat, you’d need to edit the <Connector> entry in /conf/server.xml to add the URIEncoding="UTF-8" attribute.

    <Connector URIEncoding="UTF-8" ... />
    

    Calling request.setCharacterEncoding("UTF-8"); manually has no effect as the filter is already doing that.

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

Sidebar

Related Questions

I use VB to get data through my form. I have some optional fields
Say you have a web form with some fields that you want to validate
I have this weird issue with special characters. In JSP, I am using field
i have some fields in my database table,and a field with phone name ,
I have some char() fields in a DBF table that were left encrypted by
I have some input fields in a page and i want to validate if
I have table with some fields that the value will be 1 0. This
Assume you have some objects which have several fields they can be compared by:
So I have an object which has some fields, doesn't really matter what. I
I have a basic model in which i have specified some of the fields

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.