From af7401396156d15513bbf73e12c5b7a839413ca5 Mon Sep 17 00:00:00 2001 From: Jeroen Desloovere Date: Mon, 30 Nov 2015 08:30:48 +0100 Subject: [PATCH] Probably fixes vcards for outlook --- src/VCard.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/VCard.php b/src/VCard.php index 26ba4b0..0edbd5e 100644 --- a/src/VCard.php +++ b/src/VCard.php @@ -558,8 +558,15 @@ public function getHeaders($asAssociative) */ public function getOutput() { - return ($this->isIOS7()) ? + $output = ($this->isIOS7()) ? $this->buildVCalendar() : $this->buildVCard(); + + // we need to decode the output for outlook + if ($this->getCharset() == 'utf-8') { + $output = utf8_decode($output); + } + + return $output; } /**