Focal Point
Parentheses converted to %28 and %29

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2331040612

March 02, 2007, 02:06 PM
HokieMark
Parentheses 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 B
The %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.


Alan.
WF 7.705/8.007
March 03, 2007, 11:48 AM
HokieMark
Alan,
STRREP works like a charm.
Thanks,
Mark