In my case, I was using mb_split
, which uses regex. Therefore I also had to manually make sure the regex encoding was utf-8 by doing mb_regex_encoding('UTF-8');
As a side note, I also discovered by running mb_internal_encoding()
that the internal encoding wasn't utf-8, and I changed that by running mb_internal_encoding("UTF-8");
.