aspose file tools*
The moose likes Servlets and the fly likes Major alfabet soup problems: servlets+mySQL,+javascript combined 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 » Servlets
Bookmark "Major alfabet soup problems: servlets+mySQL,+javascript combined" Watch "Major alfabet soup problems: servlets+mySQL,+javascript combined" New topic
Author

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

Thomas Goorden
Ranch Hand

Joined: Aug 15, 2001
Posts: 39
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
The servlet code looks like:

And the javascript like this:

Where the ${...} tags are inserted automatically...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Major alfabet soup problems: servlets+mySQL,+javascript combined
 
Similar Threads
Line Breaks when displaying HTML
Error at form_TextFiled
complex XML doct & SAX parsing
Unable to display data from access database
How to convert java object in a request scope to javascript object???