CIRCL / AIL-framework

AIL framework - Analysis Information Leak framework. Project moved to https://github.com/ail-project
https://github.com/ail-project/ail-framework
GNU Affero General Public License v3.0
1.29k stars 283 forks source link

UnicodeDecodeError when running 'LAUNCH.sh' on a fresh Ubuntu install #525

Closed fr0gger closed 3 years ago

fr0gger commented 3 years ago

Hi, I have multiple UnicodeDecodeError exception when running LAUCH.sh -l for the first time on a fresh Ubuntu install. Below is the screenshot of the command "screen -r Flask_AIL".

Thanks for your help :)

Screenshot 2020-09-25 at 11 07 15
Terrtia commented 3 years ago

Hi @fr0gger !

This may be related to #321

On my machine with python3, this is what I get:

In [1]: import locale

In [2]: locale.getpreferredencoding(False)
Out[2]: 'UTF-8'

In [3]: locale.getpreferredencoding()
Out[3]: 'UTF-8'

Does it return ASCII for you?

fr0gger commented 3 years ago

Hi @Terrtia

Thanks for your quick reply :)

I have ANSI_X3.4-1968. Do you have a quick fix to change it to UTF-8?

>>> import locale
>>> locale.getpreferredencoding(False)
'ANSI_X3.4-1968'
>>> locale.getpreferredencoding()
'ANSI_X3.4-1968'
fr0gger commented 3 years ago

Okay just solved the issue by following the link you provided #321 Thanks!