Inserting uft8 strings into MySQL from jsp page

Reply

Join Date: Nov 2006
Posts: 1
Reputation: krismac is an unknown quantity at this point 
Solved Threads: 0
krismac krismac is offline Offline
Newbie Poster

Inserting uft8 strings into MySQL from jsp page

 
0
  #1
Nov 28th, 2006
Hi...

Ok I have created a form which posts data into a mysql database. I can then read that data from the database with another page.

I am trying to add russian text to the database... it says it has been added but it comes back as ?????

I can use PHPAdmin to add russian text and it is displayed properly on my JSP page.

So im guessing i am missing something in my insert statement...

sql = dbconn.prepareStatement("INSERT INTO property VALUES ('" + ref + "');");

text that doesnt come from the database also displays correctly.

its mysql 4.1+

any help would be great!

thanks.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC