Server code should open .json files setting their encoding

Bug #1461263 reported by Caio Begotti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
New
Undecided
Unassigned

Bug Description

There are currently (at least) 20 places in the server code where .json are opened but an encoding is not explicitly specified (encoding='utf-8'), which may lead to errors due to weird locale settings. This may be an option on Python 3 only though, so the current support for Python 2.7 might need to use io.open() or even codecs.open?

Opening this bug so it can be tracked and worked out later.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.