Hi All
I’m using FileChooser to load/save presets files to disk.
This works fine until the file path contains Chinese characters .
For Example, I created a directory : 接口 under the desktop on my Mac.
fc.reset (new juce::FileChooser ("Load preset from file...", juce::File::getCurrentWorkingDirectory(), "*.uxp", true));
fc->launchAsync ( juce::FileBrowserComponent::openMode
| juce::FileBrowserComponent::canSelectFiles,
[this] (const juce::FileChooser& chooser)
{
juce::String chosen;
auto results = chooser.getURLResults();
for (auto result : results)
chosen << (result.isLocalFile() ? result.getLocalFile().getFullPathName()
: result.toString (false));
Picking a file from this directory using the FileChooser results in:
data juce::CharPointer_UTF8::CharType * “/Users/jerome/Desktop/接口A3A3/test prst save.uxp”
How can I get rid off those extra A3A3 in the file picked result ?
Thanks to all