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

[Bug]:搜索豆瓣并创建文档关键词为中文时报 error #118

Closed
sayayuka opened this issue Jul 2, 2024 · 14 comments
Closed

[Bug]:搜索豆瓣并创建文档关键词为中文时报 error #118

sayayuka opened this issue Jul 2, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@sayayuka
Copy link

sayayuka commented Jul 2, 2024

  1. 问题说明

1.1 操作:
Mac Obsidian App Command P,打开命令面板,选择:搜索豆瓣并创建文档,输入中文关键字,App 右上角报错如图。

1.2 结果:
bug

  1. obisidian版本
    1.6.5
@Wanxp Wanxp added the bug Something isn't working label Jul 4, 2024
@Wanxp
Copy link
Owner

Wanxp commented Jul 4, 2024

在插件中登录后操作呢

@lCanx
Copy link

lCanx commented Jul 4, 2024

你好,我也遇到了同样的问题。
obsidan-douban
版本是v1.6.5
在插件登录后依旧存在该问题。

@Wanxp
Copy link
Owner

Wanxp commented Jul 5, 2024

  1. 搜索的内容是什么
  2. 插件版本、操作系统是什么
  3. 插件重新安装也没用吗

@sayayuka
Copy link
Author

sayayuka commented Jul 5, 2024

  1. 搜索的内容只要是中文字符串就会有这个问题,英文字符串没问题
  2. 插件版本 2.0.5、macOS Sonoma 14.5
  3. 插件重新安装,重新登录问题依旧

@deep1nlife
Copy link

临时解决方法:

  1. 手动对含有中文的字符串进行URL编码
  2. 对转换后的结果进行搜索

例如:「简爱」转换后为「%E7%AE%80%E7%88%B1」,将这一串字符粘贴进搜索框直接搜索即可。
在线 URL 编码 链接1链接2,还有很多同类网站选择顺手的即可。

@Wanxp
Copy link
Owner

Wanxp commented Jul 10, 2024

目前手上没有mac系统,windows、linux都能正常工作, obsidian版本 1.6.5, 插件版本为2.0.5

@Wanxp
Copy link
Owner

Wanxp commented Jul 10, 2024

临时解决方法:

  1. 手动对含有中文的字符串进行URL编码
  2. 对转换后的结果进行搜索

例如:「简爱」转换后为「%E7%AE%80%E7%88%B1」,将这一串字符粘贴进搜索框直接搜索即可。 在线 URL 编码 链接1链接2,还有很多同类网站选择顺手的即可。

你们都是mac系统出错吗,如果是的话我专门为mac系统做一次优化,搜索之前转为URL编码

@Wanxp
Copy link
Owner

Wanxp commented Jul 10, 2024

可以尝试升级为2.0.6版本,专门为Mac系统做了搜索前的URL编码功能

@deep1nlife
Copy link

抱歉在之前的回复中没有表述清楚,我的系统是 win10 21H2,obsidian 版本号 1.6.5。
在最新的 2.0.6 版本中,我的问题已经得到了解决(跳过平台检测代码后)。既然已经错过了更新又暂时没有更多相同系统的案例,我想就不必再推送一次了。
感谢您的插件与开发工作。

@lCanx
Copy link

lCanx commented Jul 11, 2024

你好,我的系统是 win11 23H2 22631.3880
obsidian版本 v1.6.5
插件版本 2.0.6
搜索中文字符就会出现这个问题

@Wanxp
Copy link
Owner

Wanxp commented Jul 11, 2024

抱歉在之前的回复中没有表述清楚,我的系统是 win10 21H2,obsidian 版本号 1.6.5。 在最新的 2.0.6 版本中,我的问题已经得到了解决(跳过平台检测代码后)。既然已经错过了更新又暂时没有更多相同系统的案例,我想就不必再推送一次了。 感谢您的插件与开发工作。

你是windows系统,插件版本 更新到2.0.6版本就没问题了吗?我的修改只针对Mac系统,按理不影响windows系统的,如果之前有问题,那升级到2.0.6版本应该还是有问题的

@Wanxp
Copy link
Owner

Wanxp commented Jul 11, 2024

尝试了下,居然还是Obsidian版本问题:
Obsidian版本1,
Current Version: 1.6.5
Installer Version: 1.4.14 没有问题

Obsidian版本2,
Current Version: 1.6.5
Installer Version: 1.6.5 就有问题

插件2.0.7版本都加上了搜索字符的URL Encode了,感谢 @deep1nlife 提供的思路

@Wanxp Wanxp closed this as completed Jul 11, 2024
@lCanx
Copy link

lCanx commented Jul 11, 2024

更新到2.0.7后恢复正常使用了。
感谢开发与维护!

@sayayuka
Copy link
Author

macOS更新到2.0.7后恢复正常使用了。
感谢开发与维护!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants