Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Special Character problem when writing to application server

Former Member
0 Kudos

Hi All,

I am facing a problem when writing a file to application server,

when ever the internal table has an entry of special character in a field say NAME, the corresponding entry in file has shifted over one byte in the file.

I think that Open data set statement used might be cause for this problem

I have used

" Open dataset P_FILE for output in textmode encoding default"

Please help me with this problem

2 REPLIES 2

valter_oliveira
Active Contributor
0 Kudos

Hi there!

Try using unicode format, using utf-8 ... like:


OPEN DATASET p_file FOR OUTPUT in text mode ENCODING utf-8.

Regards.

Valter Oliveira.

0 Kudos

Hi,,

I did not have any problem while writing to application server

The problem was only when download to system, The test person must have used some encoding while downloading to system

I did not change any code

Thanks.