Fialhon
Fialhon

Reputation: 1

Php include function mess char encoding

i have a file teste.php with

<?php

echo "descrição";

?>

When i call this teste.php directly, it prints everything ok,

but when a call another file that include('teste.php') it prints unrecognized characters. it seems to me that include function mess up with char enconding. isn't it? Can someone help me!!

Upvotes: 0

Views: 134

Answers (1)

Treffynnon
Treffynnon

Reputation: 21553

Set both files to UTF-8 encoding to solve the issue.

Upvotes: 1

Related Questions