0
I’m using a function to limit the amount of characters that are displayed, something like this:
function blabla ($string, $maxSize) {
if (strlen($string) > $maxSize)
$string = substr($string, 0, $maxSize) . ' [...]';
return $string;
}
Only that it is returning some buged characters like: "title" is "title", but when I do not use the function the string comes normal, no buged characters. how can I fix this?
I’m using this in the header:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Where’s that coming from
$string
?– ShutUpMagda
It’s the function input, I’ll edit to clarify.
– Thiago