3 ms·
YAML is all but human-friendly. It has far too many special features and edge cases for most people. Something simple like Java properties files would solve som
by pvorb 3y ago
YAML is all but human-friendly. It has far too many special features and edge cases for most people. Something simple like Java properties files would solve something like markdown front matter perfectly fine.
- Hackbraten 3y agoJava properties files are a mess. They still require Windows encoding (ISO-8859-1), which is incompatible with UTF-8.
- thfuran 3y agoOnly if you're still using java 8.
- Hackbraten 3y agoThat's a common misconception. Look at the documentation [0] or at the OpenJDK code. Both assume ISO-8859-1, unless you're dealing with a special case where resource bundles are involved. [0]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Properties.html https://docs.oracle.com/en/java/javase/21/docs/api/java.base...
- int_19h 3y agoISO-8859-1 is Latin-1, there's nothing specifically "Windows" about it.
- Hackbraten 3y agoYou're correct.
- pvorb 3y agoYou were probably thinking of Windows-1252, which is an extension of ISO-8859-1 that supports more European character sets.
- deleted 3y ago[deleted]