Marius van Witzenburg We fight for our survival, we fight!

9Jun/110

How to output UTF-8 data from PHP for Flash

Posted by mariusvw

Encode the output right for Flash to handle UTF-8 characters:

$data = 'Søm∑ spëcíål çhåråctèrs.';
echo urlencode(htmlspecialchars(serialize($data)));