In the end I found problem. I wrote
header("Content-type:text/html; charset: UTF-8");
After Content-Type
, we need to have put :
but after Charset we need to put equal sign =
which was very frustrating for me. So,
header('Content-Type: text/html; charset=utf-8');
solves the problem.