# Weird symbols when writting to txt

**URL:** <https://forum.kirupa.com/t/weird-symbols-when-writting-to-txt/66708>\
**Category:** Uncategorized\
**Created:** [October 8, 2004, 4:36am UTC](https://forum.kirupa.com/t/weird-symbols-when-writting-to-txt/66708 "2004-10-08T04:36:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [October 8, 2004, 4:36am UTC](https://forum.kirupa.com/t/weird-symbols-when-writting-to-txt/66708/1 "2004-10-08T04:36:18Z")

</div>

Hello,

I have a text/html editor coded in flash. I use a loadVars() to send some data to php so i can write my text file. So far, all good. The thing is, when the text i wanna write into my txt file is a URL, some symbols are getting added on the way that i don’t originaly have in flash.  
i.e.: \<a href=“[www.somesite.com](http://www.somesite.com) “target=”\_blank”\> [www]\</A\>  
for \<a href=“[www.somesite.com](http://www.somesite.com)” target="\_blank"\> [www]\</A\>

here’s how i catch the variables back within php:  
$stock = urldecode($\_POST[‘stock’]);  
$stuff = utf8\_encode ($stock); \<-- i use UTF-8 cause i might have latin accents.

Anyone??
