I am trying to use SetEnvIf (Apache2, via a .htaccess file) to store an environment variable where the value to be assigned to the variable needs to contain spaces. For example, trying to set environment variable "AUTH_KEY" to have value "a b":
SetEnvIf Request_URI "^/example" AUTH_KEY="a\ b"
No matter what I do, I have not been able to escape the space in the value - the space acts as a delimiter between env vars to be created (in the above AUTH_KEY is created with value '"a\' and a second env var is created called 'b"'). I have tried single-quotes too with no luck.
How do I escape the space character?