# Special chars & xml send method

**URL:** <https://forum.kirupa.com/t/special-chars-xml-send-method/196429>\
**Category:** flash\
**Created:** [August 8, 2006, 10:24am UTC](https://forum.kirupa.com/t/special-chars-xml-send-method/196429 "2006-08-08T10:24:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FredrikGeers](https://avatars.discourse-cdn.com/v4/letter/f/5f8ce5/32.png) [@FredrikGeers](https://forum.kirupa.com/u/FredrikGeers)\
**Post date:** [August 8, 2006, 10:24am UTC](https://forum.kirupa.com/t/special-chars-xml-send-method/196429/1 "2006-08-08T10:24:16Z")

</div>

I’m sending an xml file from flash to php, so php can save it to the servers filesystem.  
It works great, except when there’s a node with a special char like a quote in it.

My actionscript code is like this:

```auto

xmlExport.xmlDecl = "xml=";
xmlExport.sendAndLoad("xmlexport.php", xmlExportStatus);

```

And my php code is like this:

```php

fwrite($handle, stripslashes(urldecode($_POST['xml'])));

```

Both somewhat simplified, but this is what matters I think.  
I’m not sure about the urldecode part, but I’ve got this problem always, no matter if I use it or not.

I’ve traced the xml object, and I see that the quote is converted to ’ then. That’s great, but when php writes it, it stops there, so I end with only half of an xml file.
