equinor / webviz-subsurface

Webviz-config plugins for subsurface data.
https://github.com/orgs/equinor/projects/24
GNU General Public License v3.0
57 stars 59 forks source link

Investigate consequences of specifying encoding when opening files #740

Open asnyv opened 3 years ago

asnyv commented 3 years ago

Follow-up after: https://github.com/equinor/webviz-subsurface/pull/739

See https://www.python.org/dev/peps/pep-0597/

encoding=locale requires python >= 3.10, which is currently not an alternative for us. Should we force utf-8 or will that have consequences for e.g. Windows users?

anders-kiaer commented 3 years ago

On Mac/Linux the default OS/Python encoding is utf-8. On WIndows 10, it seems like editors like NotePad and VIsual Studio Code also by default saves (new) files as utf-8.