• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

i18n problem in passing parameter between jsp and actions

 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic