> And many other popular programming languages, including Node.js, Go, Rust, and Java uses UTF-8 by default.
Oh, I missed Java moving from UTF-16 to UTF-8.
replies(3):
Oh, I missed Java moving from UTF-16 to UTF-8.
UTF-16 text files are rather rare, as is using Notepad's UTF-16 options. The only semi-common use I know of is *.reg files saved from regedit. One issue with UTF-16 is that it has two different serializations (BE and LE), and hence generally requires a BOM to disambiguate.