Skip to content

Commit

Permalink
Some Excel writer libraries erroneously use Codepage 21010 for UTF-16…
Browse files Browse the repository at this point in the history
…LE instead of using Codepage 1200
  • Loading branch information
MarkBaker committed Dec 5, 2014
1 parent 0296daa commit 3f85430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Classes/PHPExcel/Shared/CodePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public static function NumberToName($codePage = 1252)
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)
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f85430

Please sign in to comment.