Database Administration (MOSC)

MOSC Banner

Writing Arabic characters using UTL_FILE

edited May 27, 2009 7:34AM in Database Administration (MOSC) 1 commentAnswered
Case: Writing queried Arabic character into a file through Oracle 9i

 

 

Our application uses Oracle Forms 9i and Oracle 9i.

We are able to save and retrieve Arabic character through the form. But the data stored in the database shows ‘¿¿¿¿¿ ¿¿¿¿¿'.

This is because the database nls_characterset is UTF8.

 

We are able to query and write these Arabic characters from the form, into files.

We use the following to write from the form. (Convert characterset before writing)

CLIENT_TEXT_IO.FOPEN(pi_filename,'W','AR8MSWIN1256');

CLIENT_TEXT_IO.PUT(); 

CLIENT_TEXT_IO.FCLOSE();

 

The file created does contain the Arabic characters.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center