I have a folder with several standalone .txt files on my webserver. I expect these to be displayed as such. But when opening them in the browser, either locally (from the same machine) or from remote, several characters such as accents and em dashes get replaced by other characters.
Where could this be coming from ? Searching online for a similar problem I gather that this could have to do with the presence of a Byte-Order Mark (BOM). If so, is there a handy command on openbsd that allows to delete it from the txt file if present ?