Php 正文内是否显示空白和标题标记?

Php 正文内是否显示空白和标题标记?,php,cakephp,Php,Cakephp,我在完全用cakephp的法语网站上工作,但这导致文件类型编码将字符嵌入到html中。所以我在notepad++中将文件类型更改为utf-8中的编码。但这会导致问题,并在html的主体中提供空格和头标记,如下所示- &#65279; <meta content="IE=EmulateIE9" http-equiv="X-UA-Compatible"> <meta content="IE=EmulateIE8" http-equiv="X-UA-Compatible"&g

我在完全用cakephp的法语网站上工作,但这导致文件类型编码将字符嵌入到html中。所以我在notepad++中将文件类型更改为utf-8中的
编码。但这会导致问题,并在html的主体中提供空格和头标记,如下所示-

&#65279;
<meta content="IE=EmulateIE9" http-equiv="X-UA-Compatible">
<meta content="IE=EmulateIE8" http-equiv="X-UA-Compatible">
<title> : test</title>
<link rel="icon" type="image/x-icon" href="/mapubvideoRel/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="/mapubvideoRel/favicon.ico">
<link href="/mapubvideoRel/css/main.css" type="text/css" rel="stylesheet">
<link href="/mapubvideoRel/css/helper.css" type="text/css" rel="stylesheet">
<link href="/mapubvideoRel/css/general.css" type="text/css" rel="stylesheet">
<link href="/mapubvideoRel/css/colorbox.css" type="text/css" rel="stylesheet">
<link href="/mapubvideoRel/css/App_Popup.css" type="text/css" rel="stylesheet">
<script src="/mapubvideoRel/js/jquery.js" type="text/javascript">
<script src="/mapubvideoRel/js/popup.js" type="text/javascript">
<script src="/mapubvideoRel/js/jquery.colorbox-min.js" type="text/javascript">

&#65279;
;
:测试

请帮忙。
谢谢

您有一个带有BOM字符的文件。使用BOM检测器程序

java:[推荐][查找并删除]

1-检查现有BOM的URL
2-从文件中删除BOM表

php:

您有一个带有BOM字符的文件。使用BOM检测器程序

java:[推荐][查找并删除]

1-检查现有BOM的URL
2-从文件中删除BOM表

php:

我的MVC6 web应用程序也遇到了这个问题

我在最上面的布局页面中添加了下面的一行&问题已经解决了

<?xml version="1.0" encoding="UTF-8" ?>

我的MVC6 web应用程序也遇到了这个问题

我在最上面的布局页面中添加了下面的一行&问题已经解决了

<?xml version="1.0" encoding="UTF-8" ?>


看,似乎可以使用notepad.exe删除它,这是零宽度非中断空间的Unicode标记。。它就像一个空格,但更糟糕的是,你看不到它。你似乎可以用notepad.exe来摆脱它。这是零宽度不间断空格的Unicode标记。。它就像一个空间,但更糟糕的是,你看不见它