netfishers-onl / Netshot

Network Configuration and Compliance Management
http://www.netfishers.onl/netshot
240 stars 57 forks source link

Latin characters in config backup displayed with strange symbols #281

Closed adrianodsb closed 8 months ago

adrianodsb commented 8 months ago

Hello,

I'm currently testing Netshot for backing up a bunch of Fortigate devices. So far it works like a charm, however, I noticed that latin characters are displayed as strange symbols, either when I open the config through the interface or downloading it and opening with a text editor.

For example:

Web interface: image

Notepad: image

This should display "João" and "União", both words have a "~" above "a".

Has somebody already been through this issue before?

Any ideas on how to fix this issue?

Thanks in advance!

adrianodsb commented 8 months ago

I'm closing this issue because the problem was related to missing locales inside the graalvm-community docker image referenced in the Dockerfile.

I ended up building a custom Ubuntu 22.04 based docker image with graalvm and set correct locales (en_US.UTF-8, pt_BR.UTF-8 and pt_BR ISO-8859-1).

Working as expected now.

Thank you guys for the great work!