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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.