Can the AMPL IDE editor encoding be changed to UTF-8?

Skip to first unread message

Kisse, Jolando Marius

Oct 18, 2022, 5:53:25 PM10/18/22


I would like to use the .mod and .run files both in the AMPL IDE but also in other applications, like git-versioning tools or rst-documentation. For these other applications, UTF-8 is usually the default encoding. The AMPL IDE, however, seems to use win-1252 encoding and does not display all characters in the UTF-8 files correctly (e.g., ä, ö, ü, ß in the comments and docstrings).

Is it possible make the AMPL IDE use UTF-8 encoding?

It would be a great benefit for the interaction with other applications. Setting all other application to win-1252 is not possible, unfortunately.


Best regards,



AMPL Google Group

Oct 18, 2022, 7:36:33 PM10/18/22
to AMPL Modeling Language
Dear Jolando,

To run AMPL IDE in Windows with utf-8 encoding do the following:
In the same folder where you have amplide.exe you will have a file named amplide.ini. Open amplide.ini with a text editor, like Notepad++ and add the line
at the end of the file.
Save and close the amplide.ini file.

When you restart AMPL IDE it will work in utf-8 as required.

Note that this is largely untested. Please let us know if you find any issues.

Hope this helps!
Best regards,


Nicolau Santos
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Reply all
Reply to author
0 new messages