mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
保存utf8格式歌词时添加bom
This commit is contained in:
@@ -19,7 +19,7 @@ export const saveLrc = async(filePath: string, lrc: string, format: LX.LyricForm
|
||||
break
|
||||
case 'utf8':
|
||||
default:
|
||||
fs.writeFile(filePath, lrc, 'utf8', err => {
|
||||
fs.writeFile(filePath, iconv.encode(lrc, 'utf8', { addBOM: true }), 'utf8', err => {
|
||||
if (err) console.log(err)
|
||||
})
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user