equinor / dlisio

Python library for working with the well log formats Digital Log Interchange Standard (DLIS V1) and Log Information Standard (LIS79)
https://dlisio.readthedocs.io/en/latest/
Other
121 stars 39 forks source link

Support non-ASCII characters in filepath #379

Closed achaikou closed 3 years ago

achaikou commented 3 years ago

On all modern platforms, but Windows prior to recent years, file-name string passed to fopen is interpreted as UTF-8 [1]. Known and common workaround that suits to all Windows versions is to use MultiByteToWideChar function.

[1] https://en.wikipedia.org/wiki/Unicode_in_Microsoft_Windows#UTF-8