[wp-trac] [WordPress Trac] #38044: Make seems_utf8() RFC 3629 compliant.

WordPress Trac noreply at wordpress.org
Mon Aug 11 17:04:38 UTC 2025


#38044: Make seems_utf8() RFC 3629 compliant.
--------------------------+-----------------------------
 Reporter:  gitlost       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Formatting    |     Version:  1.2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by dmsnell):

 @jorbin we discussed reaching out to the plugin space, but I wonder if the
 existing uses are fine to leave, and lean on the dev note and the
 deprecation to enforce. most of the uses are copying Core’s check whether
 or not to encode as UTF-8, but that check isn’t exemplary code that I
 would want people to follow. I feel like with this case it could be nice
 to let existing code stay until the authors update at their own direction
 or until Core has a really solid alternative approach to offer them; at
 least an approach beyond simply using the full validator. In the case of
 determining whether to encode into UTF-8, the existing `seems_utf8()` is
 not going to be terribly worse than `wp_is_valid_utf8()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/38044#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list