[wp-trac] [WordPress Trac] #63863: Standardize UTF-8 handling and fallbacks in 6.9
WordPress Trac
noreply at wordpress.org
Tue Sep 2 07:39:46 UTC 2025
#63863: Standardize UTF-8 handling and fallbacks in 6.9
-------------------------+---------------------
Reporter: dmsnell | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.9
Component: Charset | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+---------------------
Comment (by tusharbharti):
> otherwise there’s a funny thing about #9678. it’s worth doing, and I
considered creating a ticket like “ensure that code calling PCRE functions
with the u flag rely on _wp_can_use_pcre_u()” but as I looked around,
almost everything in Core just assumes the flag is present and breaks when
it isn’t.
I think creating a ticket for this would make sense as this ticket is for
standardizing the UTF-8 part. If there is a lot of places which needs
"_wp_can_use_pcre_u()" fix then it can be done on basis of a section like
formatting or even basis of files to make reviewing easier ( ofc depending
on the files changed ). I can help with this.
> here’s definitely some limit to poly-filling the mbstring extension that
I’m trying to balance, and much or most of that is focused on UTF-8.
For polyfills, https://github.com/symfony/polyfill-mbstring seems like a
good reference, though I am also exploring https://github.com/php/php-
src/tree/master/ext/mbstring
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63863#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list