Skip to content

Commit

Permalink
Probably fixes vcards for outlook
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroendesloovere committed Nov 30, 2015
1 parent 675685d commit af74013
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/VCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit af74013

Please sign in to comment.