Search Preview with special characters

Preview can't search for words with special characters. See screenshot below:



I tried checking if my typed character was different from the one in the pdf but they have the same hexadecimal.


Running Preview version 11.0 (1044.2) on MacBook Air M1, MacOS 13.3.1


MacBook Air (M1, 2020)

Posted on May 5, 2023 3:53 AM

Reply
Question marked as Top-ranking reply

Posted on May 5, 2023 5:45 AM

The current Adobe Acrobat Reader DC finds your search string immediately, and I can confirm that Preview on Ventura 13.3.1 (a) does not.



I also have a Python3/Objective-C script that searches a given PDF for a supplied string and it failed to find a match with your hjartslá search string on the identical PDF content. It uses the same PDFKit framework that Preview uses.

Similar questions

7 replies
Question marked as Top-ranking reply

May 5, 2023 5:45 AM in response to rutfol

The current Adobe Acrobat Reader DC finds your search string immediately, and I can confirm that Preview on Ventura 13.3.1 (a) does not.



I also have a Python3/Objective-C script that searches a given PDF for a supplied string and it failed to find a match with your hjartslá search string on the identical PDF content. It uses the same PDFKit framework that Preview uses.

Jul 4, 2024 9:51 AM in response to rutfol

This question is over a year old. The OP didn't post a link to the original PDF. I found another PDF that appears similar: https://skemman.is/bitstream/1946/35610/1/BS_DSE_KJ.pdf


Here's what I found:


In Ventura, I see the same problems described. If I search for "hjartslá", I find nothing.


In Sonoma however, things are different. If I search for "hjartslá", I do find all of the matches.


Just for fun, I went ahead and installed Adobe Reader in my Sonoma VM. Right off the bat, Adobe Reader complained about some vague, unspecified problem. Don't know what that was. It's also noticeably slower than Preview. But it does also successfully find "hjartslá".


But then I did a test. I changed the search string to "hjartslt. As expected, no matches were found. I only did this to clear out the search settings. Then, I searched for "hjartsla" (changing á to just a). Adobe Reader still found the matches. Is that better or worse? Certainly, it is a more powerful search engine. In addition to this kind of fuzzy match, it has lots of other options.


But remember, I'm actually testing a different PDF file. Preview can find the text in my PDF. So, it's possible that the OG PDF could be improperly constructed. Another possibility is that my Sonoma 14.5 Preview version 11 (1056.5.1) has fixed this particular bug. Considering Apple's track record on fixing bugs, I think it's more likely that the original PDF was wrong. Recent versions of Apple Preview over the past few years have had some nasty bugs. But they appear to be fixed in Sonoma.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Search Preview with special characters

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.