I'm sending a XMLHttpRequest from a js file to a php file. The php file gets results from a MySql Database stored on a Ubuntu Remote Server. In the Database, I have stored a movie title 7 Años. The php code keeps echo ing 7 A�os. How to fix this issue? Where is this issue happening exactly?
I have included the lines header("Content-Type: UTF-8"); and mysqli_set_charset($connection, "UTF8"); in the beginning of the php file.
The Column Collation: