gchudov / cuetools.net

CD image processing suite with optimized lossless encoders in C#
http://cue.tools/
Other
495 stars 52 forks source link

support international characters in titles within .m3u #118

Closed isidroco closed 3 years ago

isidroco commented 3 years ago

When within a .m3u there are titles like "Sueños" or "Música" CueTools gives error. With .CUE there's no problem

ha-korth commented 3 years ago

Does it work with these titles when the m3u file is encoded UTF-8 or UTF-8 BOM ? (with m3u extension, not m3u8)

An m3u file is supposed to be non-Unicode but CUETools doesn't support m3u8.

isidroco commented 3 years ago

Just standard ANSI on a simple .M3U file, same as CUE sheet. If a song name contains ANSI chars >128 on a .M3U file it fails to process it. Just rename a song filename adding one of these: á é í ó ú ñ and try to use CueTools on it. .CUEs are correctly processed, and .M3U fails.

c72578 commented 3 years ago

@isidroco Thanks for your report. As a workaround, you can convert your ANSI .M3U file to UTF-8 or UTF-8-BOM. This can be done e.g. using Notepad++

Or, if you prefer from command line (PowerShell 6.2 or newer):

Get-Content -Encoding 1252 .\foo.m3u | Set-Content -Encoding utf8 foo_utf8.m3u

Remark: The PowerShell version (5.1) shipped with Windows 10 can be used too. The output format is UTF-8-BOM in this case. Like this:

Get-Content .\foo.m3u | Set-Content -Encoding utf8 foo_utf8.m3u
c72578 commented 3 years ago

@isidroco Could you please test the following build with your ANSI .M3U files: https://github.com/gchudov/cuetools.net/pull/138#issuecomment-956217990