UTF8 koduj php
$a = "Não";
echo utf8_encode($a);
Testy Trout
$a = "Não";
echo utf8_encode($a);
function is_base64_encoded($data)
{
if (preg_match('%^[a-zA-Z0-9/+]*={0,2}$%', $data)) {
return TRUE;
} else {
return FALSE;
}
};
is_base64_encoded("iash21iawhdj98UH3"); // true
is_base64_encoded("#iu3498r"); // false
is_base64_encoded("asiudfh9w=8uihf"); // false
is_base64_encoded("a398UIhnj43f/1!+sadfh3w84hduihhjw=="); // false
<?php
$str = 'This is an encoded string';
echo base64_encode($str);
?>
<a href="print-billing?pid=<?php echo base64_encode($rec['pat_uniq_id']); ?>">Print</a>