[wp-trac] [WordPress Trac] #31262: Tests_DB_Charset failures

WordPress Trac noreply at wordpress.org
Tue Mar 31 10:37:47 UTC 2015

#31262: Tests_DB_Charset failures
 Reporter:  SergeyBiryukov  |       Owner:  pento
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  4.2
Component:  Database        |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:

Comment (by pento):

 I've been beating my head against this all week, with still no luck.

 Given the output, I'm starting to suspect this is a Windows-specific
 issue. For example, take the first character in the `koi8r` string. It has
 the byte value of `\xfd`, which is an invalid character in UTF-8, but `ý`
 in UTF-16 (as is shown in the `$actual` output). Given that Windows uses
 UTF-16 as its internal encoding, I suspect the string is being silently
 marked as UTF-16 at some point, either in PHP or MySQL.

 Are you able to reproduce this in later versions of PHP and MySQL?

Ticket URL: <https://core.trac.wordpress.org/ticket/31262#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list