Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

is farsi language supported in java while using database?

843859Aug 25 2006 — edited Aug 28 2006
im working on a project witch is supposed to work with jsp and database(MS-sql or mysql)
ive been trying to insert data to db in farsi language.
but all characters save by question mark (?).
im wonder if there is a deal with farsi and java,
by the way i used all tricks(utf-8,request.setCharacterEncoding("utf-8") method ,.........)
let me know what exacly problem is?
best regards....

Comments

843859
http://java.sun.com/docs/books/tutorial/index.html
DrClap
The problem may be that you haven't configured your database to contain characters other than Western European characters. Or it may be something else. You haven't exactly provided us with all the relevant information. (Not that it would be easy to do that...)

You should read this article:

http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/
843859
im wonder if there is a deal with farsi and java,
Yes. If this actually relates to your problem is not yet clear.
843859
thank u for ur notice.
ive read that ariticle before but it didnt be usefull!!
ive done all steps in thaat ariticle but.........????!!!
i think java doenst support farsi completly.
i just want make sure it does or doesnt???
thank u again
dcminter
If UTF-8 supports Farsi completely then Java does too. If it doesn't then Java doesn't.

I would presume that SQL Server can be configured to support UTF-8 in which case the same holds there. But whether you have configured it to do so is a different question which you will need to address yourself.
DrClap
i think java doenst support farsi completly.
i just want make sure it does or doesnt???
Java supports Farsi just fine. Of course MS-SQL and MySQL aren't written in Java. And you're sending data over the Internet, which also isn't written in Java. So you're going to have to do some testing to find out where your problem is.

Hint: A web application is a really clumsy tool if you want to test database access. Don't use that, just write a simple Java application to test out your database connection.

Likewise getting data from a database is too complicated if you want to test a web application. Just hard-code some data into the web app to test it.
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 25 2006
Added on Aug 25 2006
6 comments
112 views