DIYgod / RSSHub

🧡 Everything is RSSible
https://docs.rsshub.app
MIT License
33.59k stars 7.51k forks source link

【知乎专栏】知乎专栏再次出现中文乱码 #16210

Open write3371 opened 3 months ago

write3371 commented 3 months ago

路由地址

/zhihu/zhuanlan/:id

完整路由地址

/zhihu/zhuanlan/:id

相关文档

https://docs.rsshub.app/routes/social-media#%E4%B8%93%E6%A0%8F

预期是什么?

中文

实际发生了什么?

中文乱码

部署

RSSHub 演示 (https://rsshub.app)

部署相关信息

No response

额外信息

see #15913 #15944

这不是重复的 issue

github-actions[bot] commented 3 months ago
Searching for maintainers:

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake. 如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

github-actions[bot] commented 3 months ago
Searching for maintainers:

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake. 如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

github-actions[bot] commented 3 months ago
Searching for maintainers:

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake. 如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

dzx-dzx commented 3 months ago

https://blog.csdn.net/m0_62770144/article/details/140456239

dzx-dzx commented 3 months ago

https://github.com/GuanFoxyier/allMycodes/blob/2df1ff8208e2e41b3b90768daf251c425a793503/zhihu/zhihu_webpack/__zse_ck.js

felixjichao commented 3 months ago

https://github.com/GuanFoxyier/allMycodes/blob/2df1ff8208e2e41b3b90768daf251c425a793503/zhihu/zhihu_webpack/__zse_ck.js

在本地可以正常生产随机的值,但是请求知乎,还是返回的乱码。

curl 'https://zhuanlan.zhihu.com/p/597586623' \
  -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
  -H 'accept-language: zh-CN,zh;q=0.9' \
  -H 'cache-control: no-cache' \
  -H 'cookie: __zse_ck=001_F3X=MvcD8wL3cBVPN0d8zj7GVUIqgsyEzahavGOSNkTdDIlitFZqG6ziwz/Pc1GJF6jO17VVASbHqcBsFcZtNtJYBbCPbYG7G4Fb/uiFCg4MI68jP88gxkTBLBaqPMNK' \
  -H 'pragma: no-cache' \
  -H 'priority: u=0, i' \
  -H 'referer: https://zhuanlan.zhihu.com/p/597586623' \
  -H 'sec-ch-ua: "Not)A;Brand";v="99", "Microsoft Edge";v="127", "Chromium";v="127"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: document' \
  -H 'sec-fetch-mode: navigate' \
  -H 'sec-fetch-site: same-origin' \
  -H 'upgrade-insecure-requests: 1' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'````

<!doctype html>

练昌AGI渴颜:睁屋恤辫幔栈(LLM)映酬芳集 - 知乎```
dzx-dzx commented 3 months ago

太神秘了…… @felixjichao User Agent可能是cookie计算的一部分,也许应该和代码里一致。

klaus2015 commented 2 months ago

User Agent和js代码里一致,看起来还是乱码了。。

write3371 commented 3 weeks ago

知乎关怀版貌似还是正常的,是否有大佬愿意试试?

WindowsXp-Beta commented 2 weeks ago

似乎不止是专栏,answers,posts都有乱码问题。

WindowsXp-Beta commented 2 weeks ago

update: xhu的link有乱码,原本的link没有乱码。

write3371 commented 1 week ago

似乎是cookie后有乱码。

否有可能检测乱码(低频汉字出现次数过高),自动fallback到正常版本?

notlsd commented 1 week ago

Update: 动态无乱码 / 回答有乱码,非常诡异。