[serializerclass-general] SeralizerClass and Special Characters: "æ ø å"
Brought to you by:
sephiroth_tmm
From: søren j. <dem...@ho...> - 2004-02-22 12:18:38
|
Hi all! I've recently discovered the SerializerClass, and have begun experimenting with it ;) Though all seems to work fine i'm having trouble unserializing data from flash in php, that contains special characters like: "æ ø å" My PHP looks the following: <? error_reporting(E_ALL); /* echo "<br>showing post<br>"; var_dump($_POST); echo "<br>showing get<br>"; var_dump($_GET); $a = $_POST['xmldata']; echo "<br>showing name=\"xmldata\"<br>"; $b = $a['xmldata']; echo $a['xmldata']; $c = $b['Shippinginfo']; var_dump($b['Shippinginfo']); $d = $c['Name']; echo get_object_vars($c); $xml = unserialize(urldecode(stripslashes($_REQUEST['xmldata']))); var_dump($xml); print_r($_REQUEST['xmldata']); */ class xmldata { } $xml = unserialize(urldecode(stripslashes($_REQUEST['xmldata']))); var_dump($xml); ?> Any suggestions to what i'm doing wrong? Secondly is this the way to go, if i want to transport large amounts of data in the area of 300-400 Kb's of data? Or is it better to use the AMF format? Regards Søren Jepsen _________________________________________________________________ Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk |