开发者

Php include function mess char encoding

开发者 https://www.devze.com 2023-03-31 02:37 出处:网络
i have开发者_高级运维 a file teste.php with <?php echo \"descrição\"; ?> When i call this teste.php directly, it prints everything ok,

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!!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消