The default encoding of the I/O-server for standard_io
- is latin1, as the script runs in a non-interactive terminal
+ is unicode if its supported, as the script runs in a
+ non-interactive terminal.
(see section
Summary of Options) in the STDLIB User's Guide.
This option is supported by the standard shell
(group.erl), the 'oldshell' (user.erl), and the
file I/O servers.
+
+ Since OTP 26 user.erl has been deprecated, all I/O is now passed
+ through group.erl. I/O defaults to unicode if its supported, otherwise
+ latin1 (0-127), all text is however converted to unicode as an intermediate
+ representation. This means that 128-255 will be converted to unicode.
+ If you have an escript that sends raw bytes on standard_io, those bytes
+ will be translated to unicode and then back to latin1.
+ To avoid this, set the encoding to latin1.
+ {echo, boolean()}
--
cgit v1.2.1