gridfsmigrate icon indicating copy to clipboard operation
gridfsmigrate copied to clipboard

umlauts in filenames

Open sennewood opened this issue 4 years ago • 0 comments

We set PYTHONIOENCODING=utf-8 as mentioned in the Readme.

But when the script computes the first file with an umlaut in the filename, in our case: 14. Dumping 29sDGZSx79ozo6JWu Clipboard - 19. März 2020 15:39

we got this error:

  File "migrate.py", line 229, in <module>
    obj.dumpfiles("rocketchat_uploads", store)
  File "migrate.py", line 114, in dumpfiles
    key = store.put(filename, data, upload)
  File "migrate.py", line 45, in put
    file = open(self.outDir + "/" + filename, "wb")
UnicodeEncodeError: 'ascii' codec can't encode character '\xe4' in position 48: ordinal not in range(128)```

sennewood avatar Mar 09 '21 14:03 sennewood