Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding Issues #15

Open
prakash opened this issue Apr 29, 2013 · 1 comment
Open

Encoding Issues #15

prakash opened this issue Apr 29, 2013 · 1 comment

Comments

@prakash
Copy link

prakash commented Apr 29, 2013

I thought it will handle encoding of Metadata and output it in UTF-8 but sadly it does not.
For an example below is my code that does not produce expected response:

<?php
header('Content-Type: text/html; charset=utf-8');
?>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<?php
require('OpenGraph.php');

// Test Domains: tudou.com, baidu.com, liveinternet.ru, cnzz.com, allegro.pl
$graph = OpenGraph::fetch('http://' . $_GET['domain']);
var_dump($graph->keys());
var_dump($graph->schema);

foreach ($graph as $key => $value) {
    echo "$key => $value";
}
?>
@mamadoo
Copy link

mamadoo commented Dec 9, 2015

I create a pull request and fix this issue:
OpenGraph now support UTF-8 Encoding

you can using this for support UTF-8 Encoding.
Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants