How to use spaces in a dlgchoose value

Quick question here. How can I use a value containing a space in dlgchoose?

I want one of the values to be foo bar but that does not seem to work right. I also tried "foo bar" and foo+bar, still didn't work. How can I get the space between foo and bar?

This doesn't work:

@set abc={dlgchooseS|Question|Yes=foo bar|No=bar}

@set abc={dlgchooseS|Question|Yes=foo bar+No=bar}

+ is separator for multiple Label=value pairs, and pipe | is separator for dlgchoose parameters.

Thanks! I completely missed that. So how do you escape + and - characters then?

Hm it seems there is no clean way to escape them, but if you use quotes, they won't be interpreted as separators:
@set abc={dlgchooseS|Question|Yes="foo + bar"+No=bar}

Of course you'll have potentially unwanted quotes in your variable then.

@Leo can you confirm it's currently not possible to escape those?

Using quotes as in your example is the proper way to include a + in there.