I have user data with valid characters (like the long dash, see attached screen shot) that I need to put on a web page. Of course it's showing up funny. Current encoding on the web page is iso-8859-1 but I suppose I can change it to UTF-8.
The options for getting HTML entities out of UTF8 characters baffle me like mb_check_encoding(), utf8_decode(), etc. Some of them require complied in support and I cannot recompile PHP since I'm on Red Hat Linux so please see attached for what's available in php_info();
Basically I need a function that makes the funny characters go away, replaced with the correct expression - the long dash, etc.