March 02, 2007, 02:06 PM
HokieMarkParentheses converted to %28 and %29
I am passing a payroll code and description to WebFocus from an HTML select list. When I try to show the user's selection in the report header, parentheses found in the description are being converted to %28 and %29.
For example, "A1VSP2 Vision (Pre Tax)" is showing as "A1VSP2 Vision %28Pre Tax%29".
Thanks in advance for your help.
March 02, 2007, 04:36 PM
Alan BThe %28 and %29 are the escaped (translated so as not to upset a url) ( and ) characters. However I am surprised because the ( and ) are deemed safe within a url.
Are they translated on the way to the HTML page, or on the way back?
You can use the WebFocus function STRREP to get them back, or use unescape in javascript.
March 03, 2007, 11:48 AM
HokieMarkAlan,
STRREP works like a charm.
Thanks,
Mark