Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a site where a client has inserted text. Probably by copying it from a PDF or Word document. There is a strange character that appears at random places in the inserted text. The site is full of them so i would like to get rid of them programmatically, either by a search and replace in the database or by filtering via PHP when the value is printed out via str_replace();

The character looks like this, and is not recognized when i search for it in the database, and not even when you search for it with the built in browser search function.

enter image description here

It looks the same in the database as it does when rendered. In some cases it′s like an empty square, in some cases with a questionmark inside it.

I have tried this without luck:

$value = str_replace( '', '',  $value );

(The square in first argument seems to be removed when i save)

question from:https://stackoverflow.com/questions/65683070/squares-apperaing-in-text-want-to-search-replace

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
90 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...