Why do I get garbage On UNIX when displaying U format via a terminal emulation?
All characters which are not contained in the default code page will be replaced with the substitution character of the code page before displaying the output on a terminal emulation. For an ASCII code page, the substitution character (defined by the ICU conversion table) is often 0x1A, which could be a control character on UNIX terminals. It is strongly recommended to use the Web I/O Interface when using U format in I/O statements.