From 3f85430e6c112a980ec9fb021b83e11a3da897aa Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Fri, 5 Dec 2014 21:31:17 +0000 Subject: [PATCH] Some Excel writer libraries erroneously use Codepage 21010 for UTF-16LE instead of using Codepage 1200 --- Classes/PHPExcel/Shared/CodePage.php | 1 + changelog.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/Classes/PHPExcel/Shared/CodePage.php b/Classes/PHPExcel/Shared/CodePage.php index 01e0ea4..89e2d19 100644 --- a/Classes/PHPExcel/Shared/CodePage.php +++ b/Classes/PHPExcel/Shared/CodePage.php @@ -92,6 +92,7 @@ class PHPExcel_Shared_CodePage case 10029: return 'MACCENTRALEUROPE'; break; // Macintosh Central Europe case 10079: return 'MACICELAND'; break; // Macintosh Icelandic case 10081: return 'MACTURKISH'; break; // Macintosh Turkish + case 21010: return 'UTF-16LE'; break; // UTF-16 (BIFF8) This isn't correct, but some Excel writer libraries erroneously use Codepage 21010 for UTF-16LE case 32768: return 'MAC'; break; // Apple Roman case 32769: throw new PHPExcel_Exception('Code page 32769 not supported.'); break; // ANSI Latin I (BIFF2-BIFF3) diff --git a/changelog.txt b/changelog.txt index ed9eaa6..ac3cab2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -42,6 +42,7 @@ Planned for v1.8.1 - General: (MBaker) Work Item GH-394 - DefaultValueBinder is too much aggressive when converting string to numeric - General: (MBaker) - Default precalculate formulas to false for writers - General: (MBaker) - Set default Cyclic Reference behaviour to 1 to eliminate exception when using a single cyclic iteration in formulae +- General: (MBaker) - Some Excel writer libraries erroneously use Codepage 21010 for UTF-16LE - Feature: (WiktrzGE) Work Item GH-404 - Methods to manage most of the existing options for Chart Axis, Major Grid-lines and Minor Grid-lines - Feature: (frost-nzcr4) Work Item GH-403 - ODS read/write comments in the cell - Feature: (CQD) Work Item GH-389 - Additional Mac CJK codepage definitions