Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: searching for ’ (Read 4329 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

searching for ’

so, basically, sometimes some of my files get tagged with the ’ character instead of ', and that sometimes gets by me, and it irks me. dunno why, i simply don't want the ’ character to be used anywhere since i can always use the '.

now the thing is, i wanted to search my entire library for all files which contain the ’ character in the tags, but when i search it in foobar, foobar immediately searches for ' instead. aka, when i write, or paste, the ’ character in foobar search it's automatically written as ', therefore rendering me unable to search for the ’ character.

so, why is this and how do i avoid, since i would really want to find (and replace) all the ’ characters with '.

thanks in advance

searching for ’

Reply #1
Seems to work for me.
Library > Search.
Windows 10 Pro x64 // foobar2000 1.3.10

searching for ’

Reply #2
I can't help if you're trying to fix it with Foobar, but i know Mp3Tag can fix it for you easily enough.

searching for ’

Reply #3
Seems to work for me.
Library > Search.


lucky you, but for me it just doesn't want to work. it's always converted to '. however, if i search for ` or ´, it works. but ’ is simply ignored and converted to '.

I can't help if you're trying to fix it with Foobar, but i know Mp3Tag can fix it for you easily enough.


i know that too, however, loading 80k files into mp3tag is not a desirable option :\

searching for ’

Reply #4
Yea, it was not same character, I tried with regular ´ which wasn't the same apparently.

I, too, use Mp3tag for correcting spelling errors.
You can load some at a time and make Replace-actions so it fixes it automatically. At least something.

Windows 10 Pro x64 // foobar2000 1.3.10

 

searching for ’

Reply #5
i know that too, however, loading 80k files into mp3tag is not a desirable option :\


I hope you don't mean that all 80k songs have this error 
Search for ’ in foobar, select all the files it returns, and drag them into the Mp3Tag window.
That should reduce the number of files quite a bit.

searching for ’

Reply #6
Have you tried a query like
Code: [Select]
NOT "$strcmp(%artist%,$replace(%artist%,´,'))" IS 1
which should find all tracks with ´ in the artist field? Unfortunately that scheme only works for one tag (%artist%, %title%, %album%, ...) at a time.

searching for ’

Reply #7
foosion, if I understand it correctly, OP wants to replace right single quotation mark (’) with apostrophe ('). You use acute accent in the example (´).
It should look like this:

Code: [Select]
NOT "$strcmp(%artist%,$replace(%artist%,’,'))" IS 1

... but nothing happens here when testing (I altered of course a couple of tags beforehand for the purpose).

FWIW:
' Unicode Character 'Apostrophe' Alt 39 / Alt 039
Unicode Character 'Right single quotation mark' Alt +2019
´ Unicode Character 'Acute accent' Alt 0180. Should normally not be used as a "stand alone" char, but only in combination with e.g. a, e, o, i: á, é, ó, í.

For the moment the suggested solution involving dragging the affected files to Mp3tag and defining a replace action seems to be the way to go.

searching for ’

Reply #8
Oops, you're right. The goal of my approach was to narrow down the list of affected files.

searching for ’

Reply #9
although library search doesn't treat it differently, normal title formatting does. try creating a new album list view like this...

Code: [Select]
$if($strstr(%artist%%album%%title%,’),bad,good)|%artist% - %title%

searching for ’

Reply #10
Good idea. I think the problem with the query comes from the feature that allows you to leave out diacritics from search terms.