For Programmers: Free Programming Magazines  


Home > Archive > Java Help > January 2007 > JTextField Unicode Mysql









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author JTextField Unicode Mysql
Badshah

2007-01-27, 4:11 am

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 "=E2=99=A5" character in
database.


Select * from bank_master;
+---------+-----------+
| Bank_Id | Bank_Name |
+---------+-----------+
| 3 | =E2=99=A5 |
+---------+-----------+


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. "=E2=99=A5"


System.out.println(textfield.getText());


I am not able to get the problem here.=20


Sohil Surti

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com