Environment variable encoding

envars

#1

The special characters (newlines, =, etc) in my environment variables are being encoded


#2

We don’t handle special characters too well :frowning:

One thing that has worked for me is to base64 encode the whole thing and then decode it at build time.


#4

is there any update on this? can you use new line characters in environmental variables or are we still supposed to decode at build time?


#5

I’m not sure about newlines, but per the IEEE, equals shouldn’t be allowed normally.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_01

The base64 encoding seems to be the best way for now.


#6

Why not mention it in the docs? kinda confusing :frowning:


#7