I've this code to split a string every 3 characters, works fine, but accents are messed:
$splitted_array = str_split('waderòrò',3);
but it outputs
print_r($splitted_array ); >> Array ( [0] => wad [1] => er▯ [2] => ▯r▯ [3] => ▯ )
I know similar question was already asked, but this question didn't help me. ucwords and french accented lettres encoding. I did try mb_split, but without success, because I wasn't able to find the right regex... What would be the right code?