Acceptable characters in string parm.
-
- New User
- Posts: 8
- Joined: Fri Apr 01, 2011 4:21 pm
- First Name: Jim
- Last Name: Reed
- Company Name: 21st Mortgage Corp.
- Phone: 800-955-0021 1440
- Contact:
Acceptable characters in string parm.
Are there reserved characters other than '&' that cannot be passed in a parameter srting in a hyperlink? A '#' was included as part of a test address line, which caused the program to return "MCH3601 - pointer not set". Am I correct that the 'p' and 'l' in the parm value and length controls have to be lower case?
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Acceptable characters in string parm.
Yes, the 'p' and 'l' parameter names must be specified in lowercase.
There are a number of characters which are reserved in URLs and must be encoded if they occur inside a parameter value.
Many languages have built-in functions for this. For example, if the links are created with JavaScript, you can use the encodeURIComponent() function to encode the data parts.
If the links are created with RPG, a good way to do it is to create an ILE sub-procedure to perform the encoding of those data parts for you.
See here for the set of reserved characters and their encodings:
http://en.wikipedia.org/wiki/Percent-encoding
There are a number of characters which are reserved in URLs and must be encoded if they occur inside a parameter value.
Many languages have built-in functions for this. For example, if the links are created with JavaScript, you can use the encodeURIComponent() function to encode the data parts.
If the links are created with RPG, a good way to do it is to create an ILE sub-procedure to perform the encoding of those data parts for you.
See here for the set of reserved characters and their encodings:
http://en.wikipedia.org/wiki/Percent-encoding
Who is online
Users browsing this forum: No registered users and 2 guests