utf-8 to iso-8859-1 encoding problem
问题 I'm trying preview the latest post from an rss feed on another website. The feed is UTF-8 encoded, whilst the website is ISO-8859-1 encoded. When displaying the title, I'm using; $post_title = 'Blogging – does it pay the bills?'; echo mb_convert_encoding($post_title, 'iso-8859-1','utf-8'); // returns: Blogging ? does it pay the bills? // expected: Blogging - does it pay the bills? Note that the hyphen I'm expecting isn't a normal minus sign but some big-ass uber dash. Well, a few pixels