hexojs / hexo-generator-feed

Feed generator for Hexo.

Home Page:http://hexo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3.0.0版本本地测试有乱码,但是部署到网站上显示正常

lizilong1993 opened this issue · comments

    > > 3.0.0版本亲测有乱码,所有中文都是乱码。

是的,我的如下 image 版本如下

  • hexo-generator-feed: ^3.0.0
  • hexo: 6.3.0
  • hexo-cli: 4.3.0
  • Windows 11

我发现本地预览乱码,但是远程却没问题,不知道是什么原因导致的。
image

Originally posted by @lizilong1993 in #39 (comment)

commented

请问这个问题是什么解决的?

请问这个问题是什么解决的?

我觉得远程显示正常我能接受

commented

可能服务器 header 少了 encoding,浏览器没认出 UTF-8,当作 GBK 解码了。实际上没问题。