INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How do I embed an ampersand into a string?

How do I embed an ampersand into a string?

(OP)
We're using UNIFACE 8.3 and I'm building a text file that will build a URL that includes multiple parameters that must be ampersand (&) delimited.

When I use && I get ;& which is not correclty interpreted by the browser. Any other way to get an ampersand into a string?

Thanks!
Penny

RE: How do I embed an ampersand into a string?

Hi Penny,

Have you managed to do this yet?

I'm not sure I understand what you are trying to do.

Could you please explain a bit more clearly to me.

Alternatively, ask your question at TURF (The Uniface Related Forum) www.webinacan.com/turf, where there are more uniface users reading daily.

Regards,

Martin

RE: How do I embed an ampersand into a string?

(OP)
No, we ended up having to build a workaround.

Here's what we wanted to do, we wanted to create a text file that creates a 'batch' file that can be ran on a windows user pc to launch a web page and pass in parameters to that web page.

The url needs to read as :
http://web99:8082/gmac_dollars/prod.asp?4792022005010514263800&73.58&Auth-Capture&910006&2ADMwETO&479202-0&479202-Adjustment

The & is a standard delimination used by asp and various web programming to deliminate a set of parameters passed to that web page.

We can create the file, we've done this similar thing in the past, but if we try to pass multiple deliminators, what we get in the URL of Internet Explorer is

http://web99:8082/gmac_dollars/prod.asp?4792022005010514263800

the reason is that Uniface seems to want to pad the & with spaces, and spaces aren't permitted within URL's.

There is no information directly within any user guide other than there are other 'key' values that you must use double to get the actual value... or precede the value with a % or %% sign, so for example ? isn't a question mark, but represents a special character, %? gives a ? and %% gives a % character. .. etc.

I did a search on TURF Forums, and my co-worker was going to post this to that forum, but I don't think she ever did, so I'll try my question there as well.

Thanks!

PennyH

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close