I want to save HTML symbols in my database but they do get converted to random characters. I already have set every default character type to utf8_general_ci. When I do copy-paste the string in PHPmyAdmin into the table it is rendered as question marks.
what is happening copy "√∛∜(∑" into database colum gives output on website "???(?" send "√∛∜(∑∫π∠≤≥<>=≠≈≉≡≢⁰¹²³⁴⁵⁶⁷⁸⁹·⁺⁻⁼⁽⁾ⁿ" to databse is being saved as, and also being displayed on the website as:
"√∛∜(∑∫À∠≤≥<>=≠≈≉≡≢â°¹²³â´âµâ¶â·â¸â¹·âºâÂȉ¼â½â¾â¿"
Some additional information about the databse:
DEFAULT_CHARACTER_SET_NAME : utf8 DEFAULT_COLLATION_NAME : utf8_general_ci
Some additional information about the column:
Type : varchar(4096) Collation : utf8_general_ci
UPDATE:
By adding the following line to the submit file the symbols are put correctly into the database
$con -> set_charset('utf8mb4');