Picking items from an array converting to UTF8

0

Hello! My problem is this: I have a list of values in an external php file and when I use an include to call the values in my template the characters with accents are replaced with queries. I would like to know if there is a function or another way to get the values encoding them for UTF8.

Example:

$lang = array();
$lang['LANGUAGE'] = 'português';
$lang['HOME'] = 'início';

and inside the template I call it:

include 'lista.php';
echo $lang['HOME'];

Then you get started

NOTE: I used notepad ++ to format them in UTF-8 without good and resolved on most words, however in text from within buttons did not work. See the picture:

    
asked by anonymous 05.11.2016 / 22:23

1 answer

0

Solved. As I said earlier, I used notepad ++ to format them in UTF-8 without good and solved in most words, except in words inside buttons.

I came back and formatted again in notepad ++, but this time in UTF-8 and it worked. The reason I do not know, but the important thing is that I solved.

I thank all those who have given me strength and opted in this complicated process that takes the peace of many people. Thanks guys!

    
06.11.2016 / 00:26