Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with charset

 
Velika Srbija
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic