Skip to content

MB_CASE_TITLE treats entities as words (in contrast to uc_words) #18236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
grmblfrz opened this issue Apr 3, 2025 · 1 comment
Open

MB_CASE_TITLE treats entities as words (in contrast to uc_words) #18236

grmblfrz opened this issue Apr 3, 2025 · 1 comment

Comments

@grmblfrz
Copy link

grmblfrz commented Apr 3, 2025

Description

The following code:

<?php
$txt = 'acme &amp; co';

echo mb_convert_case($txt, MB_CASE_TITLE, 'UTF-8'), PHP_EOL;

Resulted in this output:

Acme &Amp; Co

But I expected this output instead:

Acme &amp; Co

Using uc_words produces the expected result:

<?php
$txt = 'acme &amp; co';

echo ucwords($txt), PHP_EOL;

results in

Acme &amp; Co

PHP Version

PHP 8.4.5, PHP 8.2.26

Operating System

No response

@youkidearitai
Copy link
Contributor

Maybe this seems not include in DerivedCoreProperties.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants