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: search for special characters (Read 2056 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

search for special characters

hi,

I’m not sure this should be here or in the support forum.
I’m trying to search for library/playlist search where I search for exact Unicode characters like Ellipsis (…) http://www.fileformat.info/info/unicode/char/2026/index.htm or Apostrophe/Quotation Marks (‘, ’, “ or ”) http://www.fileformat.info/info/unicode/char/2019/index.htm and so on

Looks like the search handles the apostrophe and quotation marks like the simple versions of them which you can find on your keyboard (', ") http://www.fileformat.info/info/unicode/char/0027/index.htm or http://www.fileformat.info/info/unicode/char/0022/index.htm

But if if search for the Ellipsis I get the whole playlist/library as a result which is kinda weird. Other less common Unicode character work quite fine (♯, ∞ and △ for example)

Is there a way to search for the exact characters? Also I think at least the part with the Ellipsis is a bug, while the part with the Quotation Marks might be just a feature.


search for special characters

Reply #2
while this is a clever workaround I would prefer one which works in the search itself because I could create a autoplaylist for example. ideally a new search operator would be handy. something like this:

Code: [Select]
artist HAS EXACTLY "…And You Will Know Us"

or

Code: [Select]
* IS EXACTLY "I’d tell you but…"

search for special characters

Reply #3
You can use "$strstr(%field%,'…')" GREATER 0 as a query.

 

search for special characters

Reply #4
and does anyone have an idea on how to search for double quotes " ?
both of those don't work
Code: [Select]
"$strstr(%title%,''')" GREATER 0

"$strstr(%title%,'"')" GREATER 0

with normal search I can at least search for everything that is or get's substituted for a typewriter apostrophe but that doesn't work for double quotes and also includes all those substituted characters too.
Code: [Select]
title HAS '


search for special characters

Reply #5
Code: [Select]
"$strstr(%title%,$char(34))" GREATER 0