Hi
i use this js function to decode my strings like (%u0645%u062D%u0645%u062F) and works very well and returns correct results with me
unescape(encoded.replace(/\+/g, " "));
i want php function that can do the same.
i try urldecode and rawurldecode but they do nothing !! just return the strings as it is .
thanks in advance.
how to decode strings using php
Moderator: General Moderators
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: how to decode strings using php
You can't. The only way to verify data, is to check if the data in encrypted form matches the already-encrypted data.
http://us2.php.net/manual/en/function.crypt.phpPHP: crypt - Manual wrote:Notes
Note: There is no decrypt function, since crypt() uses a one-way algorithm.
Re: how to decode strings using php
i think hes talking about url encoding/decoding, not encryption
Re: how to decode strings using php
have you tried the user contributed suggestions on the urldecode documentation site?