Ask the Expert

Oracle application made to run in Arabic and English

I installed Oracle 9i and Developer 6i on my PC. I aim to run a developed Oracle application that is made to run in Arabic and English. After I compile the form, all the Arabic words and characters on the form are appearing like this "?????." Using select statement in SQL Plus, the same problem appears again. I changed the character set but still have the same problem. I would like to mention that I have imported the tables and data after creation of database from a *.dmp file.

    Requires Free Membership to View

You should consult your client setting for NLS_LANG. On Windows, that will be stored in the registry. If not set, it will take the settings from the database server (which in your case, may be the same system). There is an excellent Metalink article on NLS_LANG settings and how they affect things like you're doing. There is also a book in the Oracle 9i Database documentation titled "Oracle 9i Database Globalization Support Guide Release 2 (9.2)". Chapter 3 of that book describes all the various NLS_* parameters in detail and their effects on your session. I believe that your issue is related to the character set that the client is using. To modify that character set, you need to set the NLS_LANG environment variable (or registry setting) to use the appropriate character set. The format of the NLS_LANG value is:

NLS_LANG = language_territory.charset

For example:

NLS_LANG=American_America.AL32UTF8

You might also try setting this:

ALTER SESSION SET nls_nchar_conv_excp = TRUE;

This will cause an exception to be raised whenever there is data loss during an implicit or explicit character type conversion. That may help uncover where your problem lies.

This was first published in March 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: