Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

French character encoding issue

 
Grishma Dube
Ranch Hand
Posts: 275
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20205
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this article: Character Conversions from Browser to Database.
 
Grishma Dube
Ranch Hand
Posts: 275
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic