Problem with website encoding


o site não está reconhecendo caracteres especiais. mas ja esta tudo definido como utf-8 no banco de dados e nos scripts. tudo indica que não esteja definido no arquivo php.ini,mas não tenho acesso para encontrar ele.

usuario: epiz_33671504

TRANSLATED BY MOD

The site is not recognizing special characters. but everything is already defined as utf-8 in the database and in the scripts. everything indicates that it is not defined in the php.ini file, but I do not have access to find it.

Hi and welcome to the forum
Please speak English!

That address is inaccessible to us from outside

but I noticed that something is wrong with your HTML code
https://sienge.online/emjas/ or
https://sienge.online/emjas/login_aluno.php

it starts like this
pay attention to the <head>

image

further in the html code again
an open <head>

Also the charset declaration should be in the first few lines (not on line 110)

For a charset problem (maybe it has something to do with the above but it also doesn’t have to),
you need to see which characters are displayed incorrectly and then check in various places until you find the source of the problem

5 Likes

If you’re writing the database connection code yourself, please pay attention to the connection charset. phpMyAdmin uses UTF-8 by default, but PHP is configured to use latin1 by default, which results in compatibility issues. To fix this, you’ll need to configure the connection charset in your own code to use UTF-8.

For MySQLi: PHP: mysqli::set_charset - Manual

For PDO: PHP: PDO_MYSQL DSN - Manual

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.