The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

unicode and ISO8859-2

Posted by papyrus on April 03, 2001 at 5:56 PM

Hi there,
I have problem with encoding between unicode and ISO8859-2. I don't know how this to do. Generally, I comunicate over JDBC driver for mysql, which is in ISO8859-2 and my own application written in Java and their components swing. So when I use package java.sql.* and want to execute statement for instance SELECT firma_id from firms WHERE firma="Zedn��" - this statement will not find record where firma="Zedn��". Or this example:

String s1="INSERT INTO firms (...) VALUES (...,\""+textfield.getText()+"\",...)"; - where in this example name of given record is in jEditBox and within is Zedn��. In this case programm throw exception. Maybe problem is in JDBC driver I don't know. Can you help me somebody?
Thanks
papyrus



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us