Specify file encoding in paver script
In pavement.py
we use python's open
to open files for reading and writing without specifying a text encoding. Python then chooses a default encoding which is platform-dependent (depending at least on locale and python version, maybe more).
Practically this resulting in a failing paver collect_static
on our learn-dev
server.
We should add encoding parameters to specify that the relevant files are encoded in utf-8.