mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Use mb_convert_encoding() if iconv() is not available.
This commit is contained in:
parent
d5d81b36c7
commit
3b3adb318a
@ -224,6 +224,8 @@ class VCard {
|
||||
}
|
||||
if(function_exists('iconv')) {
|
||||
$property->value = str_replace("\r\n", "\n", iconv(mb_detect_encoding($property->value, 'UTF-8, ISO-8859-1'), 'utf-8', $property->value));
|
||||
} else {
|
||||
$property->value = str_replace("\r\n", "\n", mb_convert_encoding($property->value, 'UTF-8', mb_detect_encoding($property->value, 'UTF-8, ISO-8859-1'), $property->value));
|
||||
}
|
||||
if(in_array($property->name, $stringprops)) {
|
||||
$property->value = strip_tags($property->value);
|
||||
|
Loading…
Reference in New Issue
Block a user