Hi Java keeps the strings in Unicode format internally. Use String.getBytes to get the bytes in UTF-8 before inserting them to database.
Thanks & Regards Gurvinder Singh Development Expert - Amdocs Cyprus +357.2588.6917 (desk) +357.2588.6420 (fax) AMDOCS > INTEGRATED CUSTOMER MANAGEMENT -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] On Behalf Of Nenad Bosanac Sent: Monday, March 20, 2006 4:58 PM To: JSP-INTEREST@JAVA.SUN.COM Subject: Problems with UTF-8 and JSP I have problem with UTF-8 character set. I use MySQL 5 and Tomcat 5.5.9.I use NetBeans for programinnig in Java. I made one database and is in UTF8,also all my JSP pages are set to UTF8 encoding,and also all HTML are set to UTF8. When i put š,đ,č,ć,ž character date in database directly from MySQL Query tool and and display that data in jsp pages i see all character ok, but when i use jsp pages to insert č,đ,ž,ć character and want to display them i got some strange characters. Also i put my IE browser to UNICODE UTF8 encoding. How can i see correct š,ć,đ,ž,č in my browser correct? Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com The information contained in this message is proprietary of Amdocs, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com