PhpSpreadsheet/tests/PhpSpreadsheetTests/Reader
oleibman 8729a68338
Xls Reader Handle MACCENTRALEUROPE With or Without Hyphen (#2213)
* Xls Reader Handle MACCENTRALEUROPE With or Without Hyphen

Fixes issue #549 and https://github.com/Maatwebsite/Laravel-Excel/issues/989 (which is the source of the new test file). Some systems accept MACCENTRALEUROPE as the name for the appropriate encoding, and some accept MAC-CENTRALEUROPE. I fortunately have access to at least one of each type, and have run the tests on each.

CodePage.php has an array of translations from codepage number to string. I now allow the value to itself be an array; if so, the code will test each in turn to see if it can be used in iconv. I did not go fishing for other similar problems. If such show up, they can be dealt with in the same manner as this one. I don't really expect others, since this is a problem not merely for Xls, but, even then, it applies only to BIFF5 and earlier.

I also moved XlsTest from Reader to Reader/Xls.

* Cache Successful Result For Future Use

Per suggestion from @MarkBaker
2021-07-12 03:02:47 +02:00
..
Csv Update CsvContiguousTest.php 2021-05-16 11:48:12 -07:00
Gnumeric Gnumeric Reader - Distinguish Created and Modified Timestamps (#2133) 2021-05-31 10:24:37 +02:00
Html Html import dimension conversions (#2152) 2021-06-11 17:29:49 +02:00
Ods Document Properties - Coverage and 32-bit-safe Timestamps (#2113) 2021-05-30 13:55:58 +02:00
Security Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
Slk Reader/Slk vs. Scrutinizer/Phpstan (#2192) 2021-06-29 20:48:31 +02:00
Utility When image source is a URL, store the URL for use during extraction. (#2072) 2021-06-24 10:50:44 +02:00
Xls Xls Reader Handle MACCENTRALEUROPE With or Without Hyphen (#2213) 2021-07-12 03:02:47 +02:00
Xlsx Xlsx Reader Better Namespace Handling Phase 1 First Bugfix (#2204) 2021-07-02 12:36:54 +02:00
Xml Reader XML Properties - Eliminate strtotime (#2134) 2021-05-31 11:04:07 +02:00