summaryrefslogtreecommitdiff
path: root/erts/doc/src/escript_cmd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'erts/doc/src/escript_cmd.xml')
-rw-r--r--erts/doc/src/escript_cmd.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/doc/src/escript_cmd.xml b/erts/doc/src/escript_cmd.xml
index 78b121ee97..06c245006b 100644
--- a/erts/doc/src/escript_cmd.xml
+++ b/erts/doc/src/escript_cmd.xml
@@ -118,9 +118,10 @@ $ <input>escript factorial 5</input></pre>
applies to the script itself. The encoding of the
I/O-server, however, must be set explicitly as follows:</p>
<code>
-io:setopts([{encoding, unicode}])</code>
+io:setopts([{encoding, latin1}])</code>
<p>The default encoding of the I/O-server for <c>standard_io</c>
- is <c>latin1</c>, as the script runs in a non-interactive terminal
+ is <c>unicode</c> if its supported, as the script runs in a
+ non-interactive terminal.
(see section
<seeguide marker="stdlib:unicode_usage#unicode_options_summary">
Summary of Options</seeguide>) in the STDLIB User's Guide.</p>