OCamlPro / ocaml-top

A simple cross-platform OCaml code editor built for top-level evaluation.
http://typerex.org/ocaml-top.html
GNU General Public License v3.0
64 stars 8 forks source link

Encoding problems #67

Open MoiMagnus opened 6 years ago

MoiMagnus commented 6 years ago

When trying to open files edited with other editors, I have:

Could not open /home/username/lexer.mll because it contains invalid utf-8 characters. Please fix it or choose another file

The reason is the presence of special characters as "à" or "é" in the comments of the file (and the usual Linux/Windows problems of encoding of ascii characters).

Is there a way to change the encoding used by ocaml-top to read ? Or even force the opening of the file ? (I don't care if those characters are not displayed correctly)