I am trying to display text using PHP from a database that is stored as latin_swedish_ci. It is a legacy system and I am refraining from changing it to utf-8. When the text is shown on the web page, some characters, which I think are quotes, shows as a question mark in a diamond �.
Most suggestions recommend changing the database to utf-8 but I prefer not to do this as I am not sure if it will break the rest of the system. I have also tried to change the html meta from <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
to <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
but it does not work.
The closest solution I tried is from this link PHP How to Remove/Replace Unknown question mark diamond characters but it will just replace the special character with nothing, but I want to retrieve the original character. Or at most, convert the quote to another quote that can be displayed on the web page.
To summarise, I need to display characters which shows up as question mark in a diamond in their original and intended characters.
Will appreciate any help on this, as I have been spending about 2 days on this and have found no solution.