From 6dc0c1f1b6ecd5d2b64af6f0a6e8685c529e05d9 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Mon, 9 Nov 2015 23:33:26 +0000 Subject: [PATCH] Additional codepages --- changelog.txt | 1 + src/PhpSpreadsheet/Shared/CodePage.php | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/changelog.txt b/changelog.txt index aa93fbd4..dbf9cfda 100644 --- a/changelog.txt +++ b/changelog.txt @@ -29,6 +29,7 @@ Planned for 1.9 - Bugfix: (MBaker) Work Item GH-554 - Whitespace after toRichTextObject() - General: (umpirsky) Work Item GH-548 - Optimize vlookup() sort - Feature: (MBaker) - Initial implementation of SUMIFS() function +- Feature: (MBaker) - Additional codepages 2015-04-30 (v1.8.1): - Bugfix: (goncons) Work Item GH-397 - Fix for Writing an Open Document cell with non-numeric formula diff --git a/src/PhpSpreadsheet/Shared/CodePage.php b/src/PhpSpreadsheet/Shared/CodePage.php index e68c6092..ea5f9c00 100644 --- a/src/PhpSpreadsheet/Shared/CodePage.php +++ b/src/PhpSpreadsheet/Shared/CodePage.php @@ -118,18 +118,30 @@ class CodePage return 'CP950'; // Macintosh Chinese Traditional case 10003: return 'CP1361'; // Macintosh Korean + case 10004: + return 'MACARABIC'; // Apple Arabic + case 10005: + return 'MACHEBREW'; // Apple Hebrew case 10006: return 'MACGREEK'; // Macintosh Greek case 10007: return 'MACCYRILLIC'; // Macintosh Cyrillic case 10008: return 'CP936'; // Macintosh - Simplified Chinese (GB 2312) + case 10010: + return 'MACROMANIA'; // Macintosh Romania + case 10017: + return 'MACUKRAINE'; // Macintosh Ukraine + case 10021: + return 'MACTHAI'; // Macintosh Thai case 10029: return 'MACCENTRALEUROPE'; // Macintosh Central Europe case 10079: return 'MACICELAND'; // Macintosh Icelandic case 10081: return 'MACTURKISH'; // Macintosh Turkish + case 10082: + return 'MACCROATIAN'; // Macintosh Croatian case 21010: return 'UTF-16LE'; // UTF-16 (BIFF8) This isn't correct, but some Excel writer libraries erroneously use Codepage 21010 for UTF-16LE case 32768: