Skip to content

Commit 0d115b1

Browse files
Merge pull request #119 from christianruhstaller/master
Always return charset for strings
2 parents cfe2953 + df1e723 commit 0d115b1

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "jeroendesloovere/vcard",
2+
"name": "christianruhstaller/vcard",
33
"type": "library",
44
"description": "This VCard PHP class can generate a vCard with some data. When using an iOS device it will export as a .ics file because iOS devices don't support the default .vcf files.",
55
"keywords": ["vcard", "generator", ".vcf", "php"],
@@ -23,4 +23,4 @@
2323
"autoload": {
2424
"psr-4": { "JeroenDesloovere\\VCard\\": "src/" }
2525
}
26-
}
26+
}

src/VCard.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,7 @@ public function getCharset()
674674
*/
675675
public function getCharsetString()
676676
{
677-
$charsetString = '';
678-
if ($this->charset == 'utf-8') {
679-
$charsetString = ';CHARSET=' . $this->charset;
680-
}
681-
682-
return $charsetString;
677+
return ';CHARSET=' . $this->charset;
683678
}
684679

685680
/**

0 commit comments

Comments
 (0)