簡體   English   中英

在codeigniter中加載視圖時出現奇怪的字符

[英]getting strange character while loading view in codeigniter

在 codeignit 視圖中加載視圖時出現奇怪的字符。

主視圖

<!DOCTYPE html>
<html>
<head>
<?PHP $this->load->view("common/header"); ?>
</head>
<body class="page-header-fixed">
</body>
</html> 

標題視圖

<title><?PHP echo $this->config->item('project_name'); ?>| Dashboard</title>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<meta charset="UTF-8">
<meta name="description" content="<?PHP echo $this->config->item('project_name'); ?> | Dashboard" />
<meta name="keywords" content="admin,dashboard" />

當我在 chrome 中檢查時,它顯示在加載視圖的上方並在視圖中放置空間

請看附件圖片

在此處輸入圖片說明

有問題的字符 &#65279 是 Unicode 字符 'ZERO WIDTH NO-BREAK SPACE' (U+FEFF)。 可能是您在沒有意識到的情況下通過復制/粘貼將其復制到您的代碼中。 它不可見的事實使得很難判斷您是否正在使用顯示實際 unicode 字符的編輯器。

為什么是 &#65279; 出現在我的 HTML 中?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM