feat: Support configure lyrics file encoding.

This commit is contained in:
real-zony
2022-04-27 21:38:51 +08:00
parent f3b1dacb0c
commit 279eba48f8
8 changed files with 41 additions and 6 deletions

View File

@@ -107,5 +107,10 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric
ForEach(lyric => lyricBuilder.Append(lyric).Append(Option.LineBreak));
return lyricBuilder.ToString().TrimEnd(Option.LineBreak);
}
public byte[] GetUtf8Bytes()
{
return Encoding.UTF8.GetBytes(ToString());
}
}
}