aspose file tools*
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 JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "French character encoding issue" Watch "French character encoding issue" New topic
Author

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
Bartender

Joined: Oct 14, 2005
Posts: 18868
    
    8

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 java.net.URLDecoder.decode(aRequest.getParameter("firmName"), "UTF-8").trim(); but still it doesn't work.

Any idea, how to resolve this issue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: French character encoding issue