I'm using a pipe (|) character in an evar inside s.products. How do I escape that pipe character? | Community
Skip to main content
itwontsting
March 2, 2017
Solved

I'm using a pipe (|) character in an evar inside s.products. How do I escape that pipe character?

  • March 2, 2017
  • 1 reply
  • 1424 views

If the value of some of my eVars is something like

"orange|70|coats"

and I want to include multiple evar in s.products, it would make sense that I need to escape the inner pipe character. That's because, of course, multiple evars in s.products are also delimited using a pipe character.

So, without escaping, s.products with a single product would like like

s.products=";ABC123;1;10;event1=1.99|event2=25;evar1=orange|70|coats|evar2=3 Stars"

Assuming I cannot change the inner delimiter character to something other than a pipe character, how would I escape it?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bill_tripple1

You have to use an alternate delimiter, there is no method to escape it.

1 reply

bill_tripple1
bill_tripple1Accepted solution
Level 2
March 9, 2017

You have to use an alternate delimiter, there is no method to escape it.