2

I have a mySQL database with the following

e.g. Microeconomics.

The ‘theory of the ï¬rm’

or: Resource allocation modiï¬cations.

For some reason, the text that has been input (through CKEditor), has been changed so any instances of are in the database as 'ï¬'. I believe this is something to do with HTML entities. The text (I believe) was copy-pasted from a word document, which could be part of the problem.

How do I change (in PHP or mySQL) all instances of 'ï¬' into ? When rendered as a PDF by TCPDF, it shows a ? (e.g. financial = ?nancial, significant = signi?cant)

Thanks in advance.

Community
  • 1
  • 1

1 Answers1

-1

This statement will correct all the false instances for the column that contains the 'ï¬'

Update table Set 
  column = replace(column, 'ï¬', 'fi')
arnoudhgz
  • 1,284
  • 9
  • 17