Danny620 Posted May 2, 2012 Share Posted May 2, 2012 Im using this code //create message with token gained before $post = array( 'access_token' => $access_token, 'message' => html_entity_decode($description, ENT_QUOTES), 'name' => html_entity_decode(strip_tags($post_title, ENT_QUOTES)), 'caption' => html_entity_decode(strip_tags($post_title, ENT_QUOTES)), 'link' => $_SESSION['blog_base'].'article/'.$post_url.'/', 'description' => html_entity_decode($description, ENT_QUOTES), 'picture' => 'http://www.socialnewsoffice.com/uploads/'.$article_img); to publish information to facebook however when i publish this i get this Leasing receive another Great Testimonial from�Steve Brennan at�MCM Insurance Group\r\nTo whom it may concern\r\nEarlier this year we to... any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/261955-utf8-errors/ Share on other sites More sharing options...
El Chupacodra Posted May 3, 2012 Share Posted May 3, 2012 Usually the character set is wrong or not set. Check and doublecheck that you have UTF8 as character set everywhere. Is that info from the database? You could run a quick SQL query to get all the character sets - the server has one and the database another. Type this as an SQL query in PHPMyAdmin or anything else you use: show variables like '%char%' It will list all your character sets. Most likely one is ISO8859. Quote Link to comment https://forums.phpfreaks.com/topic/261955-utf8-errors/#findComment-1342529 Share on other sites More sharing options...
xyph Posted May 3, 2012 Share Posted May 3, 2012 http://php.net/manual/en/function.html-entity-decode.php html_entity_decode($description, ENT_QUOTES, 'UTF-8') The manual says it defaults to 'UTF-8', but that's only in PHP5.4. Previously, it was 'ISO-8859-1' Quote Link to comment https://forums.phpfreaks.com/topic/261955-utf8-errors/#findComment-1342535 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.