Hi guys,
Sorry if this question is already somewhere but I need a more pratical approach:
The page is set like this:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
later in php i use the following line
$v .= "<a href='" . $videoEntry->getVideoWatchPageUrl() . "' rel='vidbox' title='" . $videoEntry->getVideoTitle() . "'><img src='";
...
$v .= "<td width='52%' height='16'><strong>Visualizações:</strong> " . $videoEntry->getVideoViewCount() . "</td>"
;
ok. now
When i do
echo $v;
Itajubá em Foco Canal20 Oficina de Cuidados Paliativos (correct)
Visualiza��es: 204 //(incorrect)
if i try
echo utf8_encode($v);
Itajubá em Foco Canal20 Oficina de Cuidados Paliativos //(incorrect)
Visualizações: 204 //(correct)
I tried to use the
header('Content-type: text/html; charset=utf-8');
but with no success.