I am using perl on a native EBCDIC platform (z/OS). I need to write UTF-8 data to a file, and I do mean UTF-8 and NOT UTF-EBCDIC. When I use the ':utf8' directive on the file open command, I find that perl uses UTF-EBCDIC, so the written file is NOT UTF-8.
What should I do to write real UTF-8 data to a file?
Any help is highly appreciated.