When using the UTF support, the default standard input and output files stdin, stdout, and stderr have some special processing done for them by the run-time. Since a program using UTF support contains data in UTF-8 and the standard files interact with the screen and spool files, there is a potential mismatch in data. The screen and spool file routines are provided by the operating system and thus expect EBCDIC. For stdout and stderr, the run-time will automatically convert UTF-8 data to EBCDIC. For stdin, the run-time will automatically convert the incoming EBCDIC to UTF-8 data.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.