zward / Amua

An open source modeling framework
GNU General Public License v3.0
33 stars 11 forks source link

UTF8 / ASCI #44

Closed TJA87 closed 4 years ago

TJA87 commented 4 years ago

Hello,

I keep having an issue where I get an "error: null" error when I try to open previous models.

I have to use Notepad++ to convert files back to UTF8 every time I want to open them. Do you have any way to have the files stay as UTF8? As far as I know, there are no special characters within them.

Thanks!

zward commented 4 years ago

The models should always be saved as UTF-8: there is a line of code that explicitly specifies the encoding before writing to file. But I wonder if there is something in the model that triggers ASCI in the Java XML marshaller. Can you send me a copy of a model where you have problems (zward@hsph.harvard.edu) so I can test it on my system? Thanks

zward commented 4 years ago

UTF-8 encoding should be fixed as of v0.2.8