• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

How to get Hebrew text from JSP page correctly?

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends
I am facing a problem saving Hebrew text from JSP page,
The input is coming from Spring mvc form in a JSP page,
Jsp pase has a utf-8 declaration , It was saved encoded in utf-8, app is running on tomcat 7,
The data submitted to a Spring controller, The problem is that the text is arriving to the controller as Gibberish.

See the "name" field of the Driver element here:

The "description" field is hebrew text I add using the debugger.

Here is the controller code:


Here is the Jsp:


Please advise, Thank you!
 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem resolved using simple filter see:
http://nirlevy.blogspot.com/2009/02/utf8-and-hebrew-in-tomcat.html
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic