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

50 views
Skip to first unread message

Kisse, Jolando Marius

unread,
Oct 18, 2022, 5:53:25 PM10/18/22
to am...@googlegroups.com

Hi!


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,

Jolando

 

AMPL Google Group

unread,
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
-Dfile.encoding=UTF8
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


--
Nicolau Santos
am...@googlegroups.com
{#HS:2042021522-112426#}
--
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 ampl+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ampl/b78094c5c228488f81168398c4bd395d%40uni-kassel.de.

Reply all
Reply to author
Forward
0 new messages