Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

i18n problem in passing parameter between jsp and actions

 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi griends ,
I have a problem with jsp/Struts on WSAD,WAS
When i pass parameter from my jsp file to action (Struts Action)
Its encoding changes to "ISO Latin-1" -jsp file encoding type is set to UTF-8- and passed parameter is UTF-8 too , but when i check it in backend it seems that encoding changes without any reason?
is there any filter / solution for this? weblogic has a mechanism for this.


thank you in advance.
 
Masoud Kalali
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
I found that i should add

(request.setCharacterEncoding("UTF-8"); to my action before reading parameter from it , also i add two difinition on my jsp page request.setcharacterEncoding("UTF-8");
and < meta .../> which both of them set content and encoding of my jsp pages to utf-8 but i istill could not use my parameter , thier encoding seems to be " ISO Latin-1 " . while i type unicode characters in my text are at jsp page.
I use Websphere as APPS , is it a problem of Websphere?
or i should make some changes?

Thank you in advance.
 
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic