i try to print this word,
echo "AUTO DETENÇÃO"
but the output is AUTO DETENÇÃO . This word is Portuguese.
i try to print this word,
echo "AUTO DETENÇÃO"
but the output is AUTO DETENÇÃO . This word is Portuguese.
Looks like your script file is saved as utf-8 but the data is sent to the client as if it was iso-8859 (or similar) encoded.
try
ini_set('default_charset', 'utf-8');
in your script before any output is sent to the client.
Then PHP will send an http response header that informs the client about the utf-8 encoding.
Be sure your encoding is set to a proper option for your language like UTF-8:
<?php header('Content-Type: text/html; charset=utf-8'); ?>
A good solution is to change the unicode to UTF-8 encoding . I think you are using some other type of encoding .
<?php
ini_set("default_charset", "utf-8");
?>
If you are saving Portuguese word with your script, Select UTF-8 encoding while you save the document.