I have a file which contains long lines made of text mixed with encoded character.
%255D%252C%2522actualPage%2522%253A1%252C%2522rowPerPage%2522%253A50%257D%255D
Each encoder character is %25xx
where xx
is the hexa value of the ascii char (ex. %2540 = @
)
I tried the folowing but w/o success
perl -pe 's/%25([0-9A-F](0-9A-F])/\x$1/' myfile.txt
perl -pe 's/%25([0-9A-F](0-9A-F])/chr($1)/' myfile.txt
Do you have any clue for me ?
TIA, Peyre