Skip to content

Commit

Permalink
Merge pull request #11 from kickdev/master
Browse files Browse the repository at this point in the history
Added support UTF-8
  • Loading branch information
yohangdev authored Jul 22, 2017
2 parents 70d16be + d5a4664 commit f32b974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LetterAvatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function generate()
if ($number_of_word > 2)
break;

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

$number_of_word++;
}
Expand Down

0 comments on commit f32b974

Please sign in to comment.