Searching for the U+FFFD � REPLACEMENT CHARACTER in Word

jmt356
SilverLounger
Posts: 2412
Joined: 28 Mar 2010, 01:49

Searching for the U+FFFD � REPLACEMENT CHARACTER in Word

Post by jmt356 »

How do I search for the white question mark on a black diamond background (the U+FFFD � REPLACEMENT CHARACTER) in Word? I want to delete all instances of it in my document.
Regards,

JMT

User avatar
HansV
Administrator
Posts: 78917
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Searching for the U+FFFD � REPLACEMENT CHARACTER in Word

Post by HansV »

Press Ctrl+H to activate the Replace dialog.
Type fffd and press Alt+X to insert the U+FFFD character into the 'Find what' box.
Best wishes,
Hans

jmt356
SilverLounger
Posts: 2412
Joined: 28 Mar 2010, 01:49

Re: Searching for the U+FFFD � REPLACEMENT CHARACTER in Word

Post by jmt356 »

When I press alt + x, Match prefix is ticked and ffdd becomes �. When I press alt + x again, Match prefix is unticked. The search turns up spaces throughout the document, but not the � character.
Regards,

JMT

User avatar
HansV
Administrator
Posts: 78917
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Searching for the U+FFFD � REPLACEMENT CHARACTER in Word

Post by HansV »

Sorry about that - I should have known that. Enter

^u65533

in the 'Find what' box. 65533 is the decimal equivalent of hexadecimal FFFD.
Best wishes,
Hans

jmt356
SilverLounger
Posts: 2412
Joined: 28 Mar 2010, 01:49

Re: Searching for the U+FFFD � REPLACEMENT CHARACTER in Word

Post by jmt356 »

That worked; thank you.
Regards,

JMT