Commit 9b790f4516f11698fefd510ef08ef5641aa1d395

Authored by Miguel Barao
1 parent ce4cb845
Exists in master and in 1 other branch dev

- added explicit encoding utf-8 for the test configuration file.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test.py
... ... @@ -14,7 +14,7 @@ def read_configuration(filename, debug=False, show_points=False, show_hints=Fals
14 14 # FIXME validar se ficheiros e directorios existem???
15 15  
16 16 try:
17   - f = open(filename, 'r')
  17 + f = open(filename, 'r', encoding='utf-8')
18 18 except IOError:
19 19 print('[ ERROR ] Cannot open YAML file "%s"' % filename)
20 20 sys.exit(1)
... ...