I am working on a PHP application that needs to parse strings sent by another program. the problem is that some lines have octal characters and some other screens in the middle.
So, instead script>XYZ, I get:
\103RI\120T>XYZ%6En \151\156 d%6Fcu\155%65n..
And I need to print this line, decoded ... I tried to use octdec, url_decodeetc., but one only works with one char, and the other does not decode the octal ... Does anyone have any suggestions?
source
share