[wp-trac] [WordPress Trac] #65342: Charset: Polyfill mb_ord() and mb_chr() for UTF-8

WordPress Trac noreply at wordpress.org
Mon May 25 22:57:09 UTC 2026


#65342: Charset: Polyfill mb_ord() and mb_chr() for UTF-8
-------------------------+--------------------
 Reporter:  dmsnell      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  7.1
Component:  Charset      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+--------------------
 These functions are useful primitives but missing when the mbstring
 extension isn’t available. This patch adds polyfills for those few
 environments where this is the case so that WordPress code can
 unconditionally call them.

 Only UTF-8 is supported for practical reasons. Code in unsupported
 environments should convert first to UTF-8 and then call these functions.
 See also #62172

 This work is part of #31992

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65342>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list