The example given for createdb fails because template0 is not provided:
[~] createdb -p 5000 -h eden -E LATIN1 -e demo CREATE DATABASE demo ENCODING 'LATIN1'; createdb: database creation failed: ERROR: new encoding (LATIN1) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template.