Why it throw error while passing a path contain foreign language words as param.

Please provide the following:

  1. SDK Version: 41.0.0
  2. Platforms(Android/iOS/web/all): iOS

when I pass a path contain some Chinese words to the FileSystem.getInfoAsync, FileSystem.makeDirectoryAsync or other methods, it throw error that ‘xxxxxx – file:/// isn’t readable’ or ‘xxxxxx – file:/// isn’t writable’.

when I run the code:

FileSystem.getInfoAsync(documentDirectory + '你好')
  .then(value => {
    console.log(value);
  })
  .catch(e => {
    console.log(e.message);
  });

error is like:

File 'file:/Users/xxxxx/Library/Developer/CoreSimulator/Devices/DE44D203-53C6-4E51-85EF-73E2D2459FBF/data/Containers/Data/Application/AEBABDB5-6C44-4DA9-A064-0AD1DB84F744/Documents/ExponentExperienceData/%252540bearye%25252FMarker/%E4%BD%A0%E5%A5%BD -- file:///' isn't readable.

Hey @bearye, we’re going to focus our support efforts on your github issue. Please follow along there for updates when we get around to addressing your issue!

Cheers,
Adam