Skip to content

Include mbstring polyfill #4898

@swissspidy

Description

@swissspidy

Feature Description

For parsing and rendering the story markup in the correct way, we use mb_convert_encoding to fix the encoding if needed. That function is part of the mbstring extension which can be missing or outdated on certain servers.

We can include https://github.com/symfony/polyfill-mbstring/ as a polyfill for these cases.

This should reduce the number of support requests where users report mangled umlauts due to inproper encoding.

Setup should be straightforward:

  1. composer require symfony/polyfill-mbstring
  2. Update scoper.inc.php to prefix symfony/polyfill-mbstring dependencies correctly

Alternatives Considered

Additional Context

Related: #4859, #4791


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance Criteria

Implementation Brief

Metadata

Metadata

Assignees

No one assigned

    Labels

    AMP OutputIssues related to AMP output and validationGroup: WordPressChanges related to WordPress or Gutenberg integrationType: EnhancementNew feature or improvement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions