Skip to Content
0
Former Member
Sep 13, 2007 at 11:04 PM

Writing files in UTF-8 format

1217 Views

Hi,

Our system is unicode enable and I want to write a file in UTF-8 format.

I'tried the following syntax.

OPEN DATASET l_filename FOR OUTPUT IN TEXT MODE ENCODING UTF-8.

and OPEN DATASET l_filename FOR OUTPUT IN TEXT MODE ENCODING default

But when I check the file, it is in ANSI format. Is there a way we can force the system to write it in UTF-8 format?

Thanks,

Ramesh