Decode Base64 from javascript btoa() PHP


Description
Decode base64 utf-8 strings encoded with javacript btoa() function


Javascript:
var encoded = btoa("áéòù");

PHP:
$decoded = utf8_encode( base64_decode($encoded_string) ) );

SEE ALSO