Text encoding

JavaScript strings represent Unicode characters (internally encoded in UTF-16). Care must be taken to preserve Unicode compliance when communicating with external programs - wherever possible.

Command line

The Process class passes the command line to the operating system (and thus to the external program) in full Unicode compliance:


Console text streams

The Process class uses the following scheme for communicating with the stdin and stderr/stdout text streams:


While this behavior is not perfect in all cases, note that: