A user nap was trying to set the DISCOURSE_TITLE variable in app.yml to Pilot's Lounge but was having issues due to the single quote character. They tried various methods, including escaping with a backslash and using double quotes or single quotes with double apostrophes, but none worked.
nap listed all the methods they tried, but still encountered errors. codinghorror commented on the comprehensiveness of the list.
Stephen suggested using a different type of apostrophe ’ instead of the typewriter apostrophe '. They also recommended wrapping the title in quotes, but nap found that wrapping quotes weren’t required. The solution worked, and nap was able to set the title successfully.
I would like to use a single quote character in the title of my forum to achieve Pilot's Lounge. When I specified it in the UI, it worked fine. However, when I try setting the variable DISCOURSE_TITLE variable in app.yml to Pilot's Lounge, the title is truncated at the single quote.
I’ve had a look at https://yaml.org/spec/current.html#id2534365, but using '' (two consecutive single quotes) doesn’t work.
I’ve also tried "Pilot's Lounge", "Pilot''s Lounge", and other variations but none work.
(<unknown>): found unknown escape character while parsing a quoted scalar at line 69 column 20 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.