# Encoding problem

**URL:** <https://techcommunity.softwareag.com/t/encoding-problem/94695>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [September 16, 2010, 3:12pm UTC](https://techcommunity.softwareag.com/t/encoding-problem/94695 "2010-09-16T15:12:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maciejm](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@maciejm](https://techcommunity.softwareag.com/u/maciejm)\
**Post date:** [September 16, 2010, 3:12pm UTC](https://techcommunity.softwareag.com/t/encoding-problem/94695/1 "2010-09-16T15:12:43Z")

</div>

On some pages I have form fields that must be filled with non-english words having some diacritical marks like “ą”, “ę”.  
After sending the form to the server, the page refreshes and the browser displays the content in read-only.  
Words with diacritical marks are displayed in strange encoding.

The problem only appears on JSP generated pages.  
Source pages have UTF-8.

I don’t know if it’s a framework issue or maybe a tomcat problem? ☹

Maybe someone have a similiar issue?

PS. I attach two screenshots with the described example.

Regards,  
Maciej  
 ![after.gif](https://global.discourse-cdn.com/techcommunity/original/2X/1/1ccce54d281cbcf6a685abeb0ba17641d4740b4a.gif)  
 ![before.gif](https://global.discourse-cdn.com/techcommunity/original/2X/e/edcd19bcd20a262dbd29a8287c26631dae1fb34d.gif)

---

<div class="post-metadata">

**Author:** ![Tanya](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tanya](https://techcommunity.softwareag.com/u/Tanya)\
**Post date:** [September 16, 2010, 9:13pm UTC](https://techcommunity.softwareag.com/t/encoding-problem/94695/2 "2010-09-16T21:13:01Z")

</div>

Maciej, it sounds like a browser/tomcat problem.

---

<div class="post-metadata">

**Author:** ![maciejm](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@maciejm](https://techcommunity.softwareag.com/u/maciejm)\
**Post date:** [September 17, 2010, 1:24pm UTC](https://techcommunity.softwareag.com/t/encoding-problem/94695/3 "2010-09-17T13:24:59Z")

</div>

Tanya, have you any idea what might be wrong with the browser/tomcat?

Because when I run the same screen in the browser as an instant type not as JSP generated, the problem with encoding doesn’t appear.

---

<div class="post-metadata">

**Author:** ![maciejm](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@maciejm](https://techcommunity.softwareag.com/u/maciejm)\
**Post date:** [September 17, 2010, 5:03pm UTC](https://techcommunity.softwareag.com/t/encoding-problem/94695/4 "2010-09-17T17:03:22Z")

</div>

I finally solved the issue by adding to the web application an encoding filter and configured it in web.xml file 😃

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:59pm UTC](https://techcommunity.softwareag.com/t/encoding-problem/94695/5 "2021-04-02T14:59:05Z")

</div>


