Skip to content

Multilingual Plugin: ucwords does not support multi-byte encoded text #228

@mtschirs

Description

@mtschirs

The PHP function ucwords only works for single-byte encoded text. It mangles e.g. the first chinese character in "中文 / Chinese".

Therefore I recommend replacing ucwords($Name) with mb_convert_case($Name, MB_CASE_TITLE, "UTF-8") in class.multilingual.plugin.php in line 57.

Metadata

Metadata

Assignees

Labels

Status: PRThis issue has a PR ready. It's not necessary to use this label, but can be helpful.Type: Technical DebtA Lannister always pays his debts. Eventually.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions