diff options
author | Aleksander Machniak <alec@alec.pl> | 2021-10-28 15:09:29 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2021-10-28 15:09:29 +0300 |
commit | 13da16b36fbd6f6b8d035d7ebb4f581ce29ebed7 (patch) | |
tree | 4c3c778bec8578baa30be06a1919209599bcf338 /tests | |
parent | 4402605be9c16a60c4e7abb3379636b9508e676b (diff) |
Fix charset conversion errors on PHP < 8 for charsets not supported by mbstring (#8252)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Framework/Charset.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Framework/Charset.php b/tests/Framework/Charset.php index 1284a2fae..38e217c2e 100644 --- a/tests/Framework/Charset.php +++ b/tests/Framework/Charset.php @@ -72,6 +72,9 @@ class Framework_Charset extends PHPUnit\Framework\TestCase if (extension_loaded('iconv')) { // Windows-1253 is not supported by mbstring, we're testing fallback to iconv $data[] = ['ε', chr(hexdec(('E5'))), 'UTF-8', 'WINDOWS-1253']; + // Windows-874 is also not supported by mbstring + $in = quoted_printable_decode('=B5=CD=BA=A1=C5=D1=BA'); + $data[] = [$in, 'ตอบกลับ', 'WINDOWS-874', 'UTF-8']; } return $data; |