UTL_FILE character encoding issue.
We are facing issue writing file using UTL_FILE package. Some special characters are getting converted to junk character and length of the string also increases.
Since we generate fix length file which get imported in other application where import gets failed due to this junk character.
Below is the sample code for your reference. We are running this code on 11g R2 DB on Linux OS with AL32UTF8 Character set and length semantic as CHAR.
We found solution to fix this issue on below link
https://support.oracle.com/CSP/main/article?cmd=show&id=227531.1&type=NOT