The following code is creating problem.
var_dump($name);
$name = mb_strtolower($name);
var_dump($name);
Output is
string(32) "brazil and technology, São Paulo"
string(32) "brazil and technology, s�o paulo"
Can someone please explain why I am getting an invalid character for ã? What am I doing wrong here?
mb_detect_encoding($name) says its UTF-8