Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用全文搜索时中文标题未解码Chinese title not decoded when using full text search #1790

Closed
TajangSec opened this issue Apr 20, 2022 · 10 comments

Comments

@TajangSec
Copy link

使用全文搜索时中文标题未解码
Chinese title not decoded when using full text search
我的全文搜索插件如下
image
开启本地docsify服务时,搜索页面如下
image
搜索出来的中文标题未解码
我看到有一个方法说,修改src/plugins/component.js的内容,可是我是Windows本地运行,并且是引入的远程插件,并没有这些文件,请问我该如何解决?

@sy-records
Copy link
Member

duplicate of #1769

I cannot reproduce your question, please follow the issue template for your question.

image

@TajangSec
Copy link
Author

The src/plugins/component.js file is not referenced in my environment
i use

<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>

@sy-records
Copy link
Member

It will all be in the search.min.js file after the build, and you can see https://cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js

@TajangSec
Copy link
Author

I have downloaded this file locally and quoted, but my Chinese title is still not decoded. Do you need to modify this search.min.js
in what part?

@sy-records
Copy link
Member

I don't know what you modified. You should tell me how to reproduce this problem, follow the issue template, and provide a sandbox or repo.

@TajangSec
Copy link
Author

Here is my docsify: https://wiki.ctfking.com/
You can try the search function, search for Lxxx
The Chinese title of the displayed page is undecoded

@TajangSec
Copy link
Author

I can upload my docsify local environment to the github repo if needed

@sy-records
Copy link
Member

Your file path should be in English.

- 首页

  - [介绍](/)
- 个人知识库

  - [Web安全](个人知识库/Web安全/)
    - [SQL注入](/个人知识库/Web安全/SQL注入.md)
  - [代码审计](个人知识库/代码审计/)
    - [PHP代码审计](个人知识库/代码审计/PHP代码审计.md)
    - [Java代码审计](个人知识库/代码审计/Java代码审计.md)
- 更新日志
  - [更新日志](更新日志/README.md)

@TajangSec
Copy link
Author

Why can he?
https://i.xiinnn.com/#/

@TajangSec
Copy link
Author

你好,很道歉打扰你多次,这次我找到了原因,我这里全文搜索功能出现未解码显示是因为本地Chrome浏览器的原因。在我重置浏览器设置之后,便可正确显示中文标题。但我尚且不知Chrome的哪些设置导致了中文标题乱码,已排除扩展程序的原因。

Hello, I apologize for bothering you many times. This time I found the reason. The undecoded display of the full-text search function here is because of the local Chrome browser. After I reset my browser settings, the Chinese title is displayed correctly. But I still don't know which settings in Chrome caused the Chinese title to be garbled, and the extension has been ruled out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants