Will not find or replace curly quotes


I used Word 2000 to generate some curly quotes and apostrophes, facing both directions. Then I copied and pasted them into a php file. FindAndReplace could not find them. I wanted to replace them with straight quotes, but no luck.

file attachments


ericpopivker wrote Jan 31, 2014 at 7:39 AM


Can you please provide example of text that is in php file and what you use for find/replace text?


FlorescentLight wrote Jan 31, 2014 at 1:00 PM

I don't know if these characters will appear correctly on this web site, but I'll try:

They are curly quotes (double and single) generated in Word 2000 using "smart quotes". The last item is an em or en dash -- I'm not sure which. I can make the dash in Word by holding CTRL down and pressing the minus key on the number pad. This character has a legitimate use in English, and it is not a hyphen.


ericpopivker wrote Feb 1, 2014 at 8:10 AM


Can you please attach example php file and what you use for find/replace, so I can reproduce the issue.


FlorescentLight wrote Feb 1, 2014 at 1:53 PM

The characters that I already provided are the ones I realized were not being replaced when I performed a multi-file search and replace operation. So I created a single php file in a folder by itself, and did several search and replace operations on just that file, as follows:

“ to be replaced by "
” to be replaced by "
’ to be replaced by '
‘ to be replaced by '
– to be replaced by --

To see the difference between the characters, copy and paste them into a word processor and make the font really big.

The test file contained just the characters I have already listed. None of those target characters were successfully replaced by the program.

I am on WinXP.


ericpopivker wrote Mar 3, 2014 at 11:51 AM


Can you attach the actual file (or sample of it) that you are trying to replace?

Also include generated command line that you use.

Please use latest version of fnr.exe:


mblakesl wrote Sep 11, 2015 at 5:51 PM

This is the same issue I'm having... I have attached what I'm searching for. You can see that the two sets of quotes are different.