This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Java in General and the fly likes French character encoding issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "French character encoding issue" Watch "French character encoding issue" New topic

French character encoding issue

Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
Hi All,

My application uses Java 1.4 and it runs on Tomcat 1.5 and WAS6.1.

We have some firm names that are stored in Oracle 11g DB in French such as QMéEC or Panamé N.A. We have a search criteria page where user is entering complete firm name like this QMéEC and same is being passed to backend procedure as String input param. When the search is happening on tomcat, the procedure is returning us correct data. Also when printed input param on Eclipse IDE consol where tomcat is running, it displayed exact string that was entered by user.

When same search is tried on WAS server, the procedure doesn't return any data. When printed the logs of that server (logs are in HTML), the input param was having a question mark in firm name like this QM?. Due to this search is not working on WAS server. We have following configurations in web.xml:

Can someone please help me in identifying this issue.

Thanks in advance.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19691

Try this article: Character Conversions from Browser to Database.
Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
I have 2 screens in my application which are having search functionality. On both the screen, search works fine on Tomcat.
Also for one screen search is working fine on Websphere but another screen, it doesn't fetch any data.

The screen which is fetching data is passing input from JSP to Action class through ActionForm where as the screen which is not fetching data is passing input from JSP to Action class through request meaning i'm getting input text as request.getParameter("firmName") here. I tried"firmName"), "UTF-8").trim(); but still it doesn't work.

Any idea, how to resolve this issue.
I agree. Here's the link:
subject: French character encoding issue
It's not a secret anymore!