修复Windows对TiK ToK解析中文乱码的问题 强制进行UTF-8 编码

This commit is contained in:
CSSZYF 2025-06-03 20:33:06 +08:00 committed by GitHub
parent b63d8acf50
commit d2ecdd2542
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ function constructCookiePath(url, cookiePath) {
* @returns {string}
*/
function constructEncodingParam(url) {
return url.includes("youtu") ? "--encoding UTF-8" : "";
return "--encoding UTF-8"; // 始终为标题获取使用 UTF-8 编码
}