How does one escape a semicolon in their database.yml file? One of our passwords have an embedded ";" character.
me wrote:
How does one escape a semicolon in their database.yml file? One of our passwords have an embedded ";" character.
semi-colons are not reserved words in yaml and therefore don't need escaping YAML Reference Card
"text with embedded semi-colons such as ; and ; and even more ;".to_yaml
=> "--- text with embedded semi-colons such as ; and ; and even more ;\n"
hth
ilan
I've had trouble with certain characters in db passwords before too, even characters that weren't reserved or "special" for yaml. Wrapping it in quotes seems to do the trick.