SQL Query to Replace Symbols

Hello,

I need to write an SQL query for MySQL to go through my database and replace symbols. I have a form people can copy and paste from Microsoft Word from. It brings all sorts of bizarre encoding problems with it.

I am seeing the following in place of an apostrophe: ―

My SQL query can find and replace the "â€" portion just fine. When I ask it to find that round bullet point, however, it can't. Despite the fact that I copied and pasted the bullet point directly from an SQL entry, it can't find it. Is there any way to include it in a query to get MySQL to find it?

Thanks,
Joseph
jkeagle13Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NorieAnalyst Assistant Commented:
Joseph

How are you doing the find/replace that's works?
0
jkeagle13Author Commented:
Using the following: update TABLE set FIELD = replace(FIELD,'–','-')
0
NorieAnalyst Assistant Commented:
If you can find out the ASCII code for the symbol(s) you want to get rid of you can use CHAR in the Replace.

I think the code for the bullet point could be 226, that's what I get when I check in MySQL anyway.

If that doesn't work you can always copy that single character and paste it in the query.

There's also a whole bunch of other string functions you could probably use.

REPLACE(test1.txtfield, SUBSTRING(test1.txtfield, LOCATE( 'â€', test1.txtfield),3),'-')
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.