mirror of
https://github.com/metallicgloss/WHMCS-Discord-Notifications.git
synced 2025-12-19 14:59:18 +00:00
Correct UTF-8 encoding for alphabets.
This commit is contained in:
@@ -579,7 +579,7 @@ function simpleFix($value){
|
|||||||
$valueTrim = explode( "\n", wordwrap( $value, 150));
|
$valueTrim = explode( "\n", wordwrap( $value, 150));
|
||||||
$value = $valueTrim[0] . '...';
|
$value = $valueTrim[0] . '...';
|
||||||
}
|
}
|
||||||
$value = mb_convert_encoding($value, "UTF-8", "HTML-ENTITIES"); // Allows special characters to be displayed on Discord.
|
$value = iconv(mb_detect_encoding($value, mb_detect_order(), true), 'UTF-8', $value); // Allows special characters to be displayed on Discord.
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user