??? Modern editors (including one in Lazarus) create files in many different encodings.
In lazarus I have not found an option to change the file encoding. VSCode, another editor I use regularly, has that option quite visible, but by default it is UTF-8, and most people never change any defaults. Same for VIM, while it supports multiple encodings, any new file created with it will by default be UTF-8.
UTF-8 is the quasi standard of encodings today. Other encodings are mostly just used for backwards compatibility. So unless you specifically ask for it, you will always work with UTF-8. This means that any string processing needs to assume that the default format for text will be UTF-8.
Even Java and the Windows API, the two system that kept having UTF-16LE as their default for quite some time, switched to UTF-8 some time ago.