Change to mb_strlen

This commit is contained in:
Xwiz 2022-02-12 17:03:52 +01:00
parent a41040db71
commit 1b45affd3b

View File

@ -141,7 +141,7 @@ class Worksheet
*/
public function autoSetWidth($cell, $style, $zeroBasedIndex)
{
$size = 1 + strlen($cell->getValue());//ensure we have at least 1 space
$size = 1 + mb_strlen($cell->getValue());//ensure we have at least 1 space
$size *= $style->isFontBold() ? 1.2 : 1.0;
$this->setMaxColumnWidth($zeroBasedIndex, $size);
}