Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
網頁文件的編碼狀況 – unethost無限空間虛擬主機 技術分享部落格

網頁文件的編碼狀況

web_file_for_format_code_issue_wp

本篇是接續:discuz資料庫編碼設定,導致登入問題
如果是編輯特殊編碼的網頁文件,
千萬不可以用ftp登入去開啟編輯,
否則一經修改完後就會破壞其編碼結構,而造成問題。

套裝程式檔案格式:
現在常見的套裝程式,都有著不同的編碼格式,像是ansi,big5,utf8,gb…等等,
如果要修改其檔案內容,建議要使用專門的編輯軟體,以免破壞其編碼結構,
而導致網頁執行異常。

跟使用者的作業電腦有關:
直接用記事本去開啟gb編碼的文件,只會看到亂碼編碼。
web_file_for_format_code_issue_01

透過雲端cpanel的檔案管理修改最佳:
開啟檔案編輯時,系統還會自動選擇檔案編碼。
web_file_for_format_code_issue_02

開啟後,並未出現亂碼,這樣就可以正常編輯。

web_file_for_format_code_issue_03

 

如果習慣性的使用cpanel檔案管理去編輯文件,
就不會撞到編碼的問題,處理速度就會加快許多。

(本篇教學由unethost.com客服撰寫)

延伸閱讀:如何備份Cpanel後台安裝的套裝程式?

安裝上述的軟體,我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。