Skip to content

Encoding Issues #15

Open
Open
@prakash

Description

@prakash

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";
}
?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions