# Urlencoding and urldecoding

**URL:** <https://forum.kirupa.com/t/urlencoding-and-urldecoding/19152>\
**Category:** Uncategorized\
**Created:** [April 24, 2003, 7:01pm UTC](https://forum.kirupa.com/t/urlencoding-and-urldecoding/19152 "2003-04-24T19:01:57Z")\
**Posts on this page:** 1\
**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:** [April 24, 2003, 7:01pm UTC](https://forum.kirupa.com/t/urlencoding-and-urldecoding/19152/1 "2003-04-24T19:01:57Z")

</div>

Hi again

I´ve got another problem with special characters.

All characters loads nicely into my txt file but when I call them from my flash it seems like the php script doesn´t handle the special characters but translates them into something tha flash don´t understand.

I´ve tried the System.UseCodePage=true; in my swf and then special characters shows just fine so I figure the the problem is with in the php code. How do I encode the text from the text file to the php script and the decode it from tht php-file into the swf?

This might be all wrong and please tell me if so.

Attaching the php code
