• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

French character encoding issue

 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this article: Character Conversions from Browser to Database.
 
Grishma Dube
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic