rl-institut / SimBA

GNU Affero General Public License v3.0
2 stars 1 forks source link

Parsing json for comments does not use UTF-8 #82

Closed PaulScheerRLI closed 1 year ago

PaulScheerRLI commented 1 year ago

The new comment functionality can break proper simulations, since electrified stations json is read differently then csv. Therefore for some stations (with "ä" in their name for example) no electrification takes place.

Reading the json file to parse comments needs to use UTF-8 encoding. On the same note Vehicle types should be read with utf-8 as well. Both calls are found in simulate.py lines 19ff