This problem is similar to one I had recently, but the other way around (see http://www.phpbb.com/community/viewtopi ... &t=1846245).
In this case I'm trying to pull some of the latest post text from phpbb_posts table, but when displaying them apostrophe's are displayed as a � (other special characters are also a problem, e.g. a £). The text is definately stored correctly in the database table as viewtopic.php is dislaying it correctly, just not my code.
The page, database and browser are all handling the text as UTF8 (as far as I can see anyway), and as it works fine on viewtopic I'm stuggling to see what the problem is.At the moment I'm just retrieving the text from the database and using generate_text_for_display with the entries bbcode_uid and bbcode_bitfield, but I've tried using code from viewtopic instead of my own and have the same problem

edit: if I force the browser to use different encoding, instead of a � for apostrophe I get:
iso-8859-1: ¿½
iso-8859-15: ¿œ
windows-1252: �
Any suggestions?
Thanks