Recently I had to decode a string that was encoded with javascript, using ascii codes of symbols. In JavaScript everything looks simple - unescape() allows to get a readable string. But I had to do it with PHP and the first thought was to use chr and ord functions. But there was a simple solution [...]