- Notes about java.util.Properties
- Use double back slash to escape a space in a key
- No need to escape spaces in the value (since it is after the
=) - Try it yourself:
final var p = new Properties();
p.load(new StringReader("""
a\\ b\\ c = foo bar
"""));
assertEquals("foo bar", p.getProperty("a b c"));