[wp-trac] [WordPress Trac] #65245: Accented or special characters issue

WordPress Trac noreply at wordpress.org
Fri May 15 21:41:27 UTC 2026


#65245: Accented or special characters issue
-------------------------------------------------+-------------------------
 Reporter:  clementpolito                        |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots needs-patch needs-   |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by jonsurrell):

 Agree with @ocean90, this belongs on meta trac.

 [https://meta.trac.wordpress.org/browser/sites/trunk/api.wordpress.org/public_html/core/credits
 /wp-credits.php?annotate=blame#L386 This line looks suspicious.] It hasn't
 changed in a long time, but changes to underlying language data or
 functionality could plausibly produce different results. In particular,
 listing `JIS` before `UTF-8` in the from encoding seems problematic. Maybe
 the conversion can be dropped completely if the data is already UTF-8.

 {{{#!php
 <?php
 $raw = 'é1234567890';
 echo mb_convert_encoding($raw, 'UTF-8', 'ASCII, JIS, UTF-8, Windows-1252,
 ISO-8859-1') . "\n";
 // テゥ1234567890
 echo mb_convert_encoding($raw, 'UTF-8', 'ASCII, UTF-8, JIS, Windows-1252,
 ISO-8859-1') . "\n";
 // é1234567890
 }}}

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


More information about the wp-trac mailing list