Skip to Main Content

Oracle Database Discussions

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!

Junk character appears in text file when copy pasted.

870002Aug 11 2015 — edited Aug 11 2015

We are generating a text file from oracle database using the below procedure:

TEXT := UTL_FILE.FOPEN('DB_DIR',BOOKING_NUMBER||'_'||REC.CARD_NUMBER||'.txt','a', 32767);

UTL_FILE.PUT_LINE(TEXT,ORDERED_TEXT); --where ordered text is a CLOB colum

When we view the file in sql developer or Ultra edit the content appears correctly, whereas when we view the file in textpad or notepad, some junk character appears this is because that text is copy pasted from a word doc.

Database Characterset: NLS_CHARACTERSET UTF8

Database Version: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production

We wanted to generate the text file without junk characters irrespective of copy pasted contents, could you please help.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2015
Added on Aug 11 2015
3 comments
534 views