From: Michael Vogel Date: Mon, 1 Sep 2014 23:31:31 +0000 (+0200) Subject: The plaintext conversion had issues with counting the text size of posts with german... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b66a031b3487251c444598003d159f01e62d1c9d;p=friendica.git The plaintext conversion had issues with counting the text size of posts with german umlauts --- diff --git a/include/plaintext.php b/include/plaintext.php index 56f0c7873d..cf0e209c06 100644 --- a/include/plaintext.php +++ b/include/plaintext.php @@ -172,10 +172,10 @@ function plaintext($a, $b, $limit = 0, $includedlinks = false, $htmlmode = 2) { $msg = str_replace(" ", " ", $msg); // Twitter is using its own limiter, so we always assume that shortened links will have this length - if (strlen($link) > 0) + if (iconv_strlen($link, "UTF-8") > 0) $limit = $limit - 23; - if (strlen($msg) > $limit) { + if (iconv_strlen($msg, "UTF-8") > $limit) { if (!isset($post["url"])) { $limit = $limit - 23;