This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes Problem with charset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with charset" Watch "Problem with charset" New topic
Author

Problem with charset

Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 172
I'm using JSP, Tomcat 4 and MySQL
I also set: charset=iso-8859-2
When I receive data from my input form, some characters (that are out of iso-8859-1, i.e. belongs to iso-8859-2) comes in form of &#nnn; (e.g. š=š č=č etc.)
Storing data that contain that sort of chars into my database, makes them longer than they should be, e.g.:
(school)
škola - from my input form (length=5) is equal to
škola - when stored into database (length=10)
What way I could fix it?
Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 172
Sorry!
This is correct:
I'm using JSP, Tomcat 4 and MySQL
I also set: charset=iso-8859-2
When I receive data from my input form, some characters (that are out of iso-8859-1, i.e. belongs to iso-8859-2) comes in form of &#nnn; (e.g. š=š č=č etc.)
Storing data that contain that sort of chars into my database, makes them longer than they should be, e.g.:
(school)
škola - from my input form (length=5) is equal to
škola - when stored into database (length=10)
I want to write into my database datas of exactly the same size as they apper when rendered in an HTML(JSP) page.
What way I could fix it?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with charset
 
Similar Threads
Passed SCJD Bodgitt and Scraper: 353
unable to handle special characters in struts
MySQL and charset
Multi language support in forms.
problem inserting data into MS Access