• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Major alfabet soup problems: servlets+mySQL,+javascript combined

 
Thomas Goorden
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm having some serious parsing problems with "special" characters (mostly french stuff):
First, the data goes from a html form through my servlet to a mySQL database (I parse for the ' first). Secondly, I need to get it from there and either put in a html page, or use the data as parameters to a javascript (a popup).
Now, the characters go nicely to the database an come back nicely from the database and I can get them in the javascript popup, where it's used in a new form (to update it).
*But*, after this, it goes wrong: the data goes to the database all screwed up: appearantly the characters used in the javascript don't come through correctly and get stored incorrectly. I'm adding the parsing and other code:
parsing code (sorry for the mess, you'll get the idea)

 
Thomas Goorden
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet code looks like:

And the javascript like this:

Where the ${...} tags are inserted automatically...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic