Cotal TypeScript packages
    Preparing search index...

    Function localeIsUtf8

    • Whether the locale's character set is UTF-8. POSIX takes the character type from LC_ALL, else LC_CTYPE, else LANG, the first that is set and not empty. With none set the answer is yes, as common Node CLIs read it, so only a locale that names another character set, such as C or ISO-8859-1, draws rich output's marks and punctuation as plain does. A Windows console takes Unicode whatever these say.

      Parameters

      • env: ProcessEnv = process.env

      Returns boolean