• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Internationalization of dynamic content

Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are developing a web app using Struts and WAS 5.1. The requirement is that the user can input data in multiple languages like english,japanese and the same needs to be displayed back according to the locale of the user.
Static data is not a problem as its getting rendered properly through resource bundle.
I am storing data in UTF-8 format in the database.
For dynamic data I�ve created a filter which intercepts every request and converts the encoding to UTF-8.
When I am retrieving the property corresponding to Japanese character in my action class, its not coming in proper format.
I.e. JVM is not able to recognize the proper format.
One thing, when I am directly providing some Japanese character (copy & paste) in the SQL server database, then on the front end, it is displayed in proper format.
I.e. things are working fine from back end to front end but not vice-verca.
So I am not sure whether problem is with request-response or from JVM side!!

I am sure i am missing something while sending the data from the front end to the DB so that its not getting stored in UTF-8 format.
Any pointers will be highly appreciated.
This tiny ad is suggesting that maybe she should go play in traffic.
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic