Make UTF-8 the only one supported language encoding

Components

Labels

Description

In-Portal always allowed to enter custom charset for each language you've add. However from time, when we implemented this feature a lot has changed and now UTF-8 is major charset that supports all of them together.

I propose to remove Charset from Language settings and always use UTF-8.

I'm proposing this because recently I had a need to do some symbol conversions in OnAfterConfigRead event, which is called before actual charset from a language is detected and mb_internal_encoding is set.

For backwards compatibility we still can support "one-per-system" charset setting in config.php (like we do now with database), but not "each language have it's own charset" system, that is bad.

Context Information

None

Additional information (do not use)

None

Attachments

3

Activity

Alex September 16, 2012 at 9:45 AM

Without this fix In-Portal can't work with UTF-8 urls on PHP 5.4.

Alex July 25, 2012 at 10:29 AM

Since 5.2.0 version was released.

Alex July 13, 2012 at 4:44 PM

Fix committed to [b]5.2.x branch/b. Commit Message:

Fixes #0001342: Make UTF-8 the only one supported language encoding

Alex July 13, 2012 at 4:40 PM

Will test all together later.

Fixed

Details

Priority

Assignee

Reporter

Developer

Change Log Message

Patch Instructions

Patches must be submitted through Phabricator.

External issue ID

External issue URL

BC Break Details

Removed methods:

  • "LanguagesTagProcessor::GetCharset"

Story Points

Fix versions

Affects versions

Created July 9, 2012 at 4:16 PM
Updated December 30, 2024 at 2:26 AM
Resolved September 16, 2012 at 9:45 AM