Closed ffwema closed 3 months ago
@ffwema thanks for the report.
However, the issue could not be reproduced yet.
I did some tests using é
in a filename.
Always write UTF-8 CUE sheet
(checked): The cuesheet is encoded correctly in UTF-8Always write UTF-8 CUE sheet
(unchecked): The cuesheet is encoded correctly in ANSIIn UTF-8, é is supposed to be encoded as 0xC3 0xA9
@ffwema thanks for the report.
The issue could be reproduced.
As you mentioned, this happens, when the original cuesheet is encoded in UTF-8
(without BOM).
If the original cuesheet is ANSI
or UTF-8-BOM
encoded, it is working properly.
The origin of the issue is here: https://github.com/gchudov/cuetools.net/blob/f52b795a1ab336c49ac183d7dabe5f0305555059/CUETools/frmCUETools.cs#L817
A fix will be prepared (follow-up to #140) ...
@c72578 thanks for the tip, didn't occur to me to try with UTF-8-BOM
encoding as source (which indeed works without issues).
I only switched from UTF-8-BOM
to UTF-8
cuesheets due to some past issues (unrelated to CUETools) and after learning that "BOM is neither required nor recommended for UTF-8" (https://stackoverflow.com/questions/2223882/whats-the-difference-between-utf-8-and-utf-8-with-bom/2223926#2223926).
@ffwema Could you please test the build from #327 using your cuesheets in UTF-8 format (without BOM).
@c72578 The linked build works flawlessly, thank you (tested on ca. 250 cuesheets that contain various special characters).
@ffwema Thanks for testing.
The
Correct filenames
action in CUETools "mangles" special characters in cuesheets, for example é becomes Ă©. Tested with original cuesheet encoded in UTF-8 -> processed cuesheet is encoded in UTF-8 BOM (optionAlways write UTF-8 CUE sheet
checked). This does not happen when using theEncode
action.