2012-06-12 34 views
0

我在cakephp中完全在法國網站上工作,但它導致文件類型編碼將字符嵌入到html中。因此,我在記事本++中將文件類型更改爲encode in utf-8,但它造成問題並給出了空白和頭標籤html像這樣 -空白和頭標籤顯示在體內?

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

請大家幫忙。 謝謝

+0

見http://stackoverflow.com/q/9691771/474535看來,您可以使用Notepad.exe來擺脫它 –

+0

這對於零寬度不間斷空格的統一標誌..它像一個空間,但更糟的是,你看不到它 –

回答

0

我也在我的MVC6網絡應用程序中遇到這個問題。

我已經在我的佈局頁面中添加了下面的行,非常頂部&問題得到解決。

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