DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   Inserting uft8 strings into MySQL from jsp page (http://www.daniweb.com/forums/thread63039.html)

krismac Nov 28th, 2006 8:33 am
Inserting uft8 strings into MySQL from jsp page
 
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.


All times are GMT -4. The time now is 11:29 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC