This project has moved and is read-only. For the latest updates, please go here.
1
Vote

Will not find or replace curly quotes

description

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

comments

ericpopivker wrote Jan 31, 2014 at 8:39 AM

Hi,

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

Eric

FlorescentLight wrote Jan 31, 2014 at 2: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.

Thanks.

ericpopivker wrote Feb 1, 2014 at 9:10 AM

Hey,

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

Eric

FlorescentLight wrote Feb 1, 2014 at 2: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.

Thanks.

ericpopivker wrote Mar 3, 2014 at 12:51 PM

Hey,

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:
https://findandreplace.codeplex.com/releases/view/119228


Eric

mblakesl wrote Sep 11, 2015 at 6: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.