Jump to content

Utf8 errors


Danny620

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/261955-utf8-errors/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/261955-utf8-errors/#findComment-1342529
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.