标签 中文 下的文章

SeaCMS播放地址中包含中文时解码错误导致无法播放

播放地址中包含中文时,正则获取到的内容可能是encodeURI编码后的,直接使用unescape解码会导致中文字符乱码而无法正常播放。
编辑/js/player/dplayer/dplayer.html文件,找到

if(r != null) return unescape(r[2]);

替换为:

if(r != null && r[2] !== undefined) return r[2].includes('%') ? decodeURI(r[2]) : unescape(r[2]);

根据播放地址字符串自动判断使用decodeURI或unescape解码。

安装kloxo中文语言包

1.使用ssh登陆您的VPS
2.进入lang目录:

cd /usr/local/lxlabs/kloxo/httpdocs/lang

3.下载语言包:

wget https://www.2dan.cc/download/kloxo_cn_pack.zip

4.解压:

unzip kloxo_cn_pack.zip

(如果没有安装unzip命令请执行yum -y install unzip进行安装)

  1. 访问http://你的IP:7778/ 进行kloxo语言设置
    在Appearance->Language里选择Chinese,然后点击update确认即可.