JDBC and Unicode

Hi ,

I have a Unicode String

String uni =" \u0627\u0633\u0644\u0627\u0645\u0020\u0622\u0628\u0627 ";

This is Urdu Language Unicode string.

I want to save it and retrieve it to display Urdu in JTextArea.

I have tried numerious solutions but not yet successeded.

What is the best solution to do this?

Thx

[378 byte] By [Java_persona] at [2007-11-27 5:10:52]
# 1
The best way to write that into a JTextArea is to call the method setText(uni) on that JTextArea. Have you tried that? If so, what problems do you have?
DrClapa at 2007-7-12 10:31:07 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

I have tried this manually(not from DB) it works fine.

I want to ask that I want to save that Unicode data in the database.

How can I save that data in the Database and retrieve this from database to show this on JTextArea as Urdu language.

I have column of NVARCHAR data type to store this value in DB.

What is the best approach to do this.

If anybody have the code to shows me how to do this please paste it here.

It will be very helpful for me

Thx

Java_persona at 2007-7-12 10:31:07 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...