I have researched a lot about it, I made many tests and no success.
Here's what happens:
My database is now "utf8_unicode_ci". I did a simple test to register a name as "Gê" and the tables are accepting normally.
The problem is when I do it from my RegisterUser php file. The results in the table is this: Gê
My php connection with the database is:
public function openConnection() {
$this->conn = new mysqli($this->dbhost, $this->dbuser, $this->dbpass, $this->dbname);
$this->conn->set_charset("utf8");
if (mysqli_connect_errno()){
throw new Exception("Could not establish connection with database");
}
}
PS: I've tried the latin1_swedish_ci format
Edit:
I fixed this using the following htmlentities: $username = html_entity_decode($_POST["username"], ENT_QUOTES, "ISO-8859-5");