u01jmg3 / ics-parser

Parser for iCalendar Events • PHP 8+, 7 (≥ 7.4), 5 (≥ 5.6)
MIT License
439 stars 144 forks source link

Emoji's no longer display correctly in v3.3.0 #327

Closed feisar-uk closed 9 months ago

feisar-uk commented 9 months ago

PHP Version

8.2.10

PHP date.timezone

Europe/London

ICS Parser Version

3.3.0

Operating System

Linux

Description

In v3.3.0 Emoji's in the Event SUMMARY field now display as � characters (question mark in a diamond) rather than the correct Emoji characters. Downgrading back to v3.2.1 restores the correct Emoji display.

Steps to Reproduce

Run the code below with the attached test.ics file both on v3.2.1 (and earlier) and v3.3.0 to observe the difference.

With ics-parser v3.2.1

correct-emoji

With ics-parser v3.3.0

incorrect-emoji

<?php
require_once '../vendor/autoload.php';

use ICal\ICal;

try {
    $ical = new ICal('test.ics');
} catch (\Exception $e) {
    die($e);
}

var_dump($ical->events());

test.ics.zip

u01jmg3 commented 9 months ago

Confirmed that this was caused by 9df6990

u01jmg3 commented 9 months ago

Try v3.3.1

feisar-uk commented 9 months ago

Working fine again now. Thank you for the speedy fix. 👍🏻