[wp-trac] [WordPress Trac] #63863: Standardize UTF-8 handling and fallbacks in 6.9
WordPress Trac
noreply at wordpress.org
Mon Sep 15 19:07:22 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 has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by dmsnell):
In [changeset:"60743" 60743]:
{{{
#!CommitTicketReference repository="" revision="60743"
Charset: Create compat-utf8.php module with fallback code.
This is the second in a series of patches to modernize and standardize
UTF-8 handling.
When the fallback UTF-8 validation code was added it was placed inside
formatting.php; however, that validation logic can be reused for a number
of related UTF-8 functions. To faciliate this it should move into a new
location and be loaded early. This patch is the first half of doing that,
whereby the original fallback function is moved unchanged to the `compat-
utf8.php` module. The follow-up patch will abstract the UTF-8 scanning
logic for reuse. Splitting this into a move and a separate change involves
an extra step, but faciliates tracking the heritage of the code through
the changes.
Developed in https://github.com/WordPress/wordpress-develop/pull/9825
Discussed in https://core.trac.wordpress.org/ticket/63863
Follow-up to: [60630].
See #63863.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63863#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list