保存utf8格式歌词时添加bom
parent
5c4590d507
commit
8d87990793
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue