Upon further investigation, I am not so sure that the problem 
comes from a BOM. More probably, since I'm only using vi(1) to
edit my (plain)text files in general, I need to be able to specify
the encoding/charset on the fly. Is that doable ? Should I update
my game and use vim ? Out of curiosity, what do you obsd devs 
and users favour ? What's your text editor of choice ?

Seeminlgy if I used vim I would only have to specify a
`:set fileencoding=utf-8' configuration option. I like
the simplicity of vi and prefer not to use syntax highlighting
 but rather proper code formatting and indentation.

(replying a bit late to my own email because I didn't get
the replies due to my change of email address. Oh and sorry
for the HTML formatting)

Le Jeudi 30 Janvier 2025 09:30 CET, sylv...@saboua.me <sylv...@saboua.me> a 
écrit:

> 
> 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 ?

-- 
Sylvain Saboua

Reply via email to