# PHP+flash spec char trouble

**URL:** <https://forum.kirupa.com/t/php-flash-spec-char-trouble/33299>\
**Category:** programming\
**Created:** [October 17, 2003, 2:53pm UTC](https://forum.kirupa.com/t/php-flash-spec-char-trouble/33299 "2003-10-17T14:53:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mooler](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mooler](https://forum.kirupa.com/u/mooler)\
**Post date:** [October 17, 2003, 2:53pm UTC](https://forum.kirupa.com/t/php-flash-spec-char-trouble/33299/1 "2003-10-17T14:53:19Z")

</div>

Hi loading data from textbox to textfile via a PHP script. The problem is that the PHP script is “distorting” the data.  
When using spec chars such as ä,ö,å the data that is saved to the textfile is something else.  
I´ve tested to load text from textfile to swf and the spec chars shows up ok så the problem lays in the PHP but I can´t find anything wrong with it!?

Please help me.

Attaching the script.

And here´s a link to what it looks like [http://www.willycranes.com/temp/](http://www.willycranes.com/temp/)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 19, 2003, 9:05am UTC](https://forum.kirupa.com/t/php-flash-spec-char-trouble/33299/2 "2003-10-19T09:05:01Z")

</div>

Appreciate all the help!

I guess I was a but unclear in my description of the problem, sorry. :nerd:

The whole thing is a guestbook and the problem is that when making a post in the guesbook the PHP script “distorts” the text before it is saved into the textfile. When checking the textfile after making a post the “distorted” text is already there.  
Then when flash is importing the text it is imported correctly (the problem is that it´s already “distorted” in the textfile).

Jesus it´s hard to explain these thing in textform.

Hope it makes any sense to you guys.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 19, 2003, 10:43am UTC](https://forum.kirupa.com/t/php-flash-spec-char-trouble/33299/3 "2003-10-19T10:43:06Z")

</div>

Sure, makes sense allright.  
What you’re saying is, PHP saves the special chars sent from Flash wrongly, and when Flash asks them back for display, of course it can only get the wrong ones…  
Try to echo the stuff you are going to save to file to a browser window and tell me what you get/upload an example/ zip up your files…
