0

For index.php, Doctype and HTML tags are as follows:

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
  'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' >

Meta tag is:

<meta  charset="utf-8"/>

If I write Bengali (i.e. Bangla) language in the webpage, I can view it well. But if I write the Bengali text in a PHP file and then include it in index.php, only ? marks are shown.

What is the way to display it properly while including another PHP file?

4

1 回答 1

0

将 PHP 文件保存为不带BOM 签名的UTF-8,您可以使用 notepad2 或其他支持编码的文本编辑器。

于 2013-03-03T12:17:11.697 回答