How do I stop apostrophes being changed to underscores?

Hi there,

I’m using the Convert > Tag - Filename option to add the Album Artist and Album as folders before the track and title.

%albumartist%\%album%\$num(%track%,2) %title%

But when the album artist’s name has an apostrophe (“Sharon O’Neill”), the apostrophe gets replaced by an underscore.

Is ther any way of stopping this from happening?

I just tried

as part of a filename and the character between O and N was kept:


But:
that character is no apostrophe:

with an apostrophe it would look like this:

Invalid characters for filenames usually just get skipped, e.g. like this using a quotation mark:

You could use a $replace() around your format string and define the replacement character as you like.

Something like this, where x is the replacement for your
$replace(%albumartist%\%album%\$num(%track%,2) %title%,'’',x)

But there is no need for a replacement. The character in the example ist a valid sign for folders and filenames and it does not ge replaced by an underscore here.

The OP says

I can't see too why an apostrophe (or similar looking character) should be replaced by an underscore with Convert Tag -> Filename.
$replace would be just one way to solve such a special character as the OP see it.

For me it looks as if there is already a not mentioned $replace function involved.