这个站点下载的字幕好奇怪,即不是压缩包,用所有编码都不正确。
我用AutoHotkey遍历了所有编码,都不正确
buf := FileRead('C:\Users\x\Downloads\American.Horror.Story.S12E01.zh%26en.srt.srt', "RAW")
loop 165001
try
{
st := StrGet(buf.ptr, buf.size, 'CP' A_Index)
if StrLen(st) > 200
MsgBox A_Index '`n' st
}
MsgBox
响应头:
HTTP/2 200
server: nginx
date: Fri, 19 Apr 2024 06:14:41 GMT
content-type: application/octet-stream
content-length: 80626
last-modified: Tue, 20 Feb 2024 15:08:25 GMT
content-disposition: attachment;filename=American.Horror.Story.S12E01.zh%2526en.srt.srt
etag: "65d4c069-13af2"
strict-transport-security: max-age=31536000
accept-ranges: bytes
也google不到相关信息。有大佬知道如何解码吗?