tccoin / Jellyfin-Potplayer

Play with Potplayer
106 stars 27 forks source link

Invalid path when path or file name is in Chinese (中文路径名问题) #12

Closed WShiBee closed 2 years ago

WShiBee commented 2 years ago

When path or file name contains Chinese, the path output to potplayer will be garbled. 02

All in English, potplayer will run smoothly.

只要路径或文件名里有中文就不行。

SEANTAMXX commented 2 years ago

试试脚本里用encodeURI 比如 window.open('potplayer://' + encodeURI(path))

WShiBee commented 2 years ago

搞定了,升级了potpalyer后,需要重新合并注册表就可以了。

OHLIA commented 2 years ago

@WShiBee 请教一下,合并注册表具体是如何做?

目前我这边传递中文到 Potplayer 是乱码,尝试在油猴脚本加入 encodeURI() 也没效果。 image image

tccoin commented 2 years ago

@OHLIA 我看到你图片里的脚本有语法错误,把Javascript:删掉试一下?

OHLIA commented 1 year ago

@OHLIA 我看到你图片里的脚本有语法错误,把Javascript:删掉试一下?

谢谢指正,但是我删除后,还是无法解决问题。