Skip to content

English locale declares ISO8859-15 instead of UTF-8 #504

Closed

Description

@caseysoftware

locales/en/lang.php registers English with charset ISO8859-15:

$LANGUAGES['en_US'] = array($dir, 'English', 'English', 'en_US', 'ISO8859-15');

setUserLocale() uses it to build user_lang, so setlocale() is asked for en_US.ISO8859-15, which many servers don't have; it then falls back to the C locale. Everything else in core is UTF-8, and en/locales.php already sets $locale_char_set = 'utf-8'. Change the fifth element to 'utf-8'.

(Dutch has the same problem; it's fixed in the Phase 2 conversion, since 5.0 doesn't change the other languages.)

Part of #495.

Activity

  1. added a commit that references this issue on Oct 24, 2026
    e0a9c08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions