My Java code is having problem when a String is converted into an actual Path on a unix system
contains unmappable characters: /out/K/Kyuss/?And the Circus Leaves Town/09 - Size Queen.mp3
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /out/K/Kyuss/?And the Circus Leaves Town/09 - Size Queen.mp3
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
at java.io.File.toPath(File.java:2234)
at com.jthink.songkong.analyse.analyser.SongSaver.saveRenamedFile(SongSaver.java:891)
at com.jthink.songkong.analyse.analyser.SongSaver.realSave(SongSaver.java:809)
at com.jthink.songkong.analyse.analyser.SongSaver.saveSongToFile(SongSaver.java:630)
at com.jthink.songkong.analyse.analyser.SongSaver.saveChanges(SongSaver.java:190)
at com.jthink.songkong.analyse.analyser.SongSaver.call(SongSaver.java:165)
at com.jthink.songkong.analyse.analyser.SongSaver.call(SongSaver.java:59)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
The problem character is the ellipse char '…' (shown as ? in error message output) which is not an 8bit character, but why does it need to be I wasn't aware there was such a restriction on unix systems.