Skip to content

Commit f32b974

Browse files
authored
Merge pull request #11 from kickdev/master
Added support UTF-8
2 parents 70d16be + d5a4664 commit f32b974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LetterAvatar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function generate()
122122
if ($number_of_word > 2)
123123
break;
124124

125-
$this->name_initials .= strtoupper(trim($word[0]));
125+
$this->name_initials .= mb_strtoupper(trim(mb_substr($word, 0, 1, 'UTF-8')));
126126

127127
$number_of_word++;
128128
}

0 commit comments

Comments
 (0)