Major alfabet soup problems: servlets+mySQL,+javascript combined
Thomas Goorden
Ranch Hand
Joined: Aug 15, 2001
Posts: 39
posted
0
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
Joined: Aug 15, 2001
Posts: 39
posted
0
The servlet code looks like:
And the javascript like this:
Where the ${...} tags are inserted automatically...
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Major alfabet soup problems: servlets+mySQL,+javascript combined