Character encoding problems
Posted on 2009-04-15
I'm working on a website that has a nasty problem. Some pages use UTF-8, other ISO-8859-1. Data is entered in the database using both methods. Now it turns out that for (at least) one of those pages the encoding is changed, resulting in data in the table that is UTF-8 for some records, and ISO-8859-1 for other. The database is set to 8859-1.
Is it possible to detect per record which encoding is used? Depending on the encoding I could use a php-function like utf8-encode.