You are viewing limited content. For full access, please sign in.

Question

Question

Can you send apostrophes in the actual data value of something being run through Web Access scanning?

asked on February 22, 2016

We are launching Web Access Scanning from another application. One of the fields we are passing is the Vendor Name. If the Vendor name is "Bob's Potatoes" the link messes up and only sends "Bob" because the apostrophe is a special character that ends the value being passed. Is there a proper way to send apostrophes so that they show up?

0 0

Answer

SELECTED ANSWER
replied on February 23, 2016

The apostrophe needs to be URL encoded (%27). But it's also a reserved character in Scanning's web URL, so it needs to be preceded by a backslash, also URL encoded (%5C). All other characters also need to be URL encoded (for ex, the space in "Bob's Potatoes" and "Vendor Name" would be replaced by %20). So it would be something like this:

Lfwa80://scanning/http://MyServer/laserfiche/App_Services/ScanningService.asmx?c=1&r=REPO&custom=%5BVendor%20Name%5D'Bob%5C%27s%20Potatoes'

 

1 0

Replies

replied on February 23, 2016 Show version history

Hi Gareth,

I've not tested this but typically when I have trouble sending an apostrophe, one of these will work:

Double Apostrophe:

Bob''s Potatoes

Back-slash Apostrophe:

Bob\'s Potatoes

The same is true for quotes:

""Bob''s Potatoes""

...and then putting the whole lot in quotes still amuses me:

{[]:[Company Name]="""Bob''s Potatoes"""}

 

1 0
replied on February 24, 2016

It was pretty relevant, Ben. I actually did convert it to %5C for a backslash and it worked before I saw Miruna's reply.

0 0
replied on February 25, 2016

Glad to hear. I'll reinstate it then.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.