Skip to content

網頁能正常顯示中文,但查看HTML源代碼卻出現亂碼…… #657

@ghost

Description

Hexo:2.6.1
環境:mac os x 10.9.3
輸入法:自帶中文輸入法
編輯器:Sublime Text 3
瀏覽器:Chrome(Safari也一樣)

在post裏輸入中文後網頁中能正常顯示,但是右鍵查看源代碼卻出現亂碼,比如中文二字會顯示成中文,很是無語啊。具體可移步翻看我的博客 http://rippleyui.org 頁面源碼。

另外,我的所有post都是以UTF-8格式保存。

搞了一下午,不知道如何解決,煩請指教!


剛剛實驗了下Jekyll,沒有任何中文亂碼問題。所以我猜測是Hexo解析md部分編碼格式不對。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions