using perl ------>
I've got a form data string that includes character returns and special characters that are displayed in formats that show the characters like this =
%28%29%2C%3E
I need to convert these back to the actual character for correct viewing on a web page. any suggestions?You could use a pattern match and substitution. Something along these lines...
$yourstring =~ s/\%28/x/g;
$yourstring =~ s/\%2C/x/g;
just change "x" to whatever the correct substitution should be.
Kevinor a hash - where %28 is thekey and whatever is the value
I've got a form data string that includes character returns and special characters that are displayed in formats that show the characters like this =
%28%29%2C%3E
I need to convert these back to the actual character for correct viewing on a web page. any suggestions?You could use a pattern match and substitution. Something along these lines...
$yourstring =~ s/\%28/x/g;
$yourstring =~ s/\%2C/x/g;
just change "x" to whatever the correct substitution should be.
Kevinor a hash - where %28 is thekey and whatever is the value