Jeff Whitaker

Results 538 comments of Jeff Whitaker

Works for me with netcdf4-python version: 1.5.5.1 HDF5 lib version: 1.10.6 netcdf lib version: 4.7.4 numpy version 1.19.4 What version of HDF do you have?

I'm using the conda packages for mpi4py etc., so I'm pretty sure they are based on gcc and openmpi

This works for me in Python 3.6 ```python from netCDF4 import Dataset filename = '\xc3\xbc.nc' nc = Dataset(filename, 'w') nc.close() ```

Not a Unicode expert, but netcdf4-python uses utf-8 encoding by default (can be changed with the `encoding` Dataset kwarg). Maybe Windows uses a different encoding?

This is related to https://github.com/Unidata/netcdf4-python/issues/686. There is actually a test for this for windows (tst_filepath.py). I suggest you try using `encoding=sys.getfilesystemencoding()`.

Is the problem resolved for python 3 on windows? I'm not clear on what works and what doesn't work.

OK, thanks for the clarification. Not having access to Windows I'm not sure where to go from here. One question that comes to mind is whether the same issue arises...

For reference https://github.com/h5py/h5py/issues/839 Not sure if this is related or not, but it's a nice discussion of the general problem.

Also https://forum.hdfgroup.org/t/non-english-characters-in-hdf5-file-name/4627/3 Seems clear that unicode filenames are not fully supported in HDF5 on windows as of yet.

I'm pretty sure that netcdf4-python goes through the same code path in the C library as the ncdump utility does. Are you sure that netcdf4-python is built with the same...