Web Hosting Talk







View Full Version : PHP Help: Encoding/Decoding characters


zahid
05-29-2004, 03:22 AM
Hello,

The original sentence is:

{J h$h $ G M" L...Wh M>jh h<pp; G'..H' J% /\ P)"t"h (K l);}

And in my browser it is:

{Jö%20Çhë$h®ä%20ßä$ñäÿä%20Gäÿä%20Mä"®ë%20Lëÿë...Wähëë%20M>üjh%20§ë%20Çh<üppä;ÿä%20Gä'ÿä..Hü§'§äñ%20J%25ö%20Ð/ëÿ\ä%20Pä)®"ä§tï"§h%20(K%20l);ëÿë}

How can i decode it to the original ? and then again encode it?

Regards,
Zahid

jonaskb
05-29-2004, 05:28 PM
Both sentences look extremely weird (possibly because of the character set used on these pages?). Could you provide some info about the original sentence? Is it in a different character set such as a Chinese or Cyrillic? If so, have a look at the multi-byte string functions (http://php.net/mbstring). Or is it a regular ISO-8859-1 sentence which has been encrypted or encoded with something? If so, have a look at one of the functions for decoding (http://dk.php.net/manual-lookup.php?pattern=decode&lang=en).

azizny
05-30-2004, 03:18 PM
well looks like it was encoded with a program like zend or cubeion..

one thing I can say the 20% stands for a space :D

peace,