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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:01:49+00:00 2026-05-24T03:01:49+00:00

I have a Tapestry application, that retrieves data from a form, writes it to

  • 0

I have a Tapestry application, that retrieves data from a form, writes it to a database and then displays the result. It all works well as long as no special characters (Ä, Ö, Ü, ß, € …) are used.

E.g. the text

TestäöüßÄÖÜ€$ 

will result in

TestäöüÃÃÃÃâ¬$

I guess the problem has something to do with a wrong character encoding setting.

Tapestry java class:

@Component(parameters = {"clientValidation=false"})
private Form form;

@Component(parameters = {"value=someDTO.name"})
private TextField someNameField;

Tapestry Template:

<t:form t:id="form">
    ...
    <t:textfield t:id="someNameField"/>
    ...
</t:form>

I checked my encoding settings at several places:

  1. HTML source:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  1. Tapestry settings (this should be the default anyway):

    tapestry.charset=UTF-8
    
  2. Firefox says (Tools>Page Info: Encoding): UTF-8.

  3. The underlying database (Oracle) also uses UTF-8:

    character_set_system    utf8
    

Then I examined the header of the POST request and two things caught my eye:

  1. There is no content type specified in the header. I would expect something like this:

    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    
  2. Spaces are encoded with + instead of %20.

I also tried the following:

@Component(parameters = {"clientValidation=false", "enctype='application/x-www-form-urlencoded; charset=UTF-8'"})
private Form form;

and

@Component(parameters = {"clientValidation=false", "enctype='application/x-www-form-urlencoded; charset=UTF-8'", "accept-charset='utf-8'"})
private Form form;

but both with no success (and I’m looking for a general solution not a workaround).

Interestingly this proposal works for some special chars (like ä, ö, ü, ß and so on), but I do not want to use ISO-8859-1. How can I set the encoding Tapestry uses for forms to UTF-8? What am I missing or is there a completely different reason for my problem?

EDIT: I made a test without the database and the problem remains, so it’s not about a wrong encoding setting on the db-side.

  • 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-24T03:01:50+00:00Added an answer on May 24, 2026 at 3:01 am

    It was indeed a misconfiguration of my server. The following addition to my web.xml solved it (of course this should also work with a non-Spring filter).

    <filter>
        <filter-name>charsetFilter</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>
    </filter>
    
    <filter-mapping>
        <filter-name>charsetFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Tapestry application that is serving its page as UTF-8. That is,
I have a Tapestry application ( WAR , no EJB) that ... ... I
I have a problem with Tapestry form. My XML database is very sensible with
I am developing a web-application with Tapestry and I have a bunch of images
I am trying to upgrade the tapestry version from 5.1.0.5 to 5.2.6. I have
I have a tapestry url that looks like http://localhost:8888/forwardtask/88 how do i get the
Have a photography site that I want to prevent image copying from. How can
I'm playing with tapestry 5.2.4 and AJAX. In my Test.tml I have a form:
I have a zone that contains a form that contains a loop. When someone
Have some dates in my local Oracle 11g database that are in this format:

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.