B
Badshah
Hello Friends, How are you ? I am Sohil. I am here with a problem
I am creating a text editor that will store data in mySql database. I
want to get the data in text field. I am having "♥" character in
database.
Select * from bank_master;
+---------+-----------+
| Bank_Id | Bank_Name |
+---------+-----------+
| 3 | ♥ |
+---------+-----------+
I am not able to display this character in textbox. The text box is
showing a rectangle instead of that character.
textfield.setText(rs.getString("Bank_Name"));
But, when I am retriving the character from text box and display it on
the command prompt console it shows right character ie. "♥"
System.out.println(textfield.getText());
I am not able to get the problem here.
Sohil Surti
I am creating a text editor that will store data in mySql database. I
want to get the data in text field. I am having "♥" character in
database.
Select * from bank_master;
+---------+-----------+
| Bank_Id | Bank_Name |
+---------+-----------+
| 3 | ♥ |
+---------+-----------+
I am not able to display this character in textbox. The text box is
showing a rectangle instead of that character.
textfield.setText(rs.getString("Bank_Name"));
But, when I am retriving the character from text box and display it on
the command prompt console it shows right character ie. "♥"
System.out.println(textfield.getText());
I am not able to get the problem here.
Sohil Surti