From 79ffbb5e30da205a8f96787dce20b9bac5534e2c Mon Sep 17 00:00:00 2001 From: Sergey Shuchkin Date: Mon, 20 Sep 2021 00:51:25 +0600 Subject: [PATCH] 1.0.21 --- src/SimpleXLSXGen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SimpleXLSXGen.php b/src/SimpleXLSXGen.php index 14d6ac5..dcd49b9 100644 --- a/src/SimpleXLSXGen.php +++ b/src/SimpleXLSXGen.php @@ -122,11 +122,11 @@ class SimpleXLSXGen { } else { $names = []; foreach( $this->sheets as $sh ) { - $names[ strtoupper( $sh['name']) ] = 1; + $names[ mb_strtoupper( $sh['name']) ] = 1; } for( $i = 0; $i < 100; $i++ ) { $new_name = ($i === 0) ? $name : $name .' ('.$i.')'; - $NEW_NAME = strtoupper( $new_name ); + $NEW_NAME = mb_strtoupper( $new_name ); if ( !isset( $names[ $NEW_NAME ]) ) { $name = $new_name; break;