Why are results of path.toString() failing to show all characters on Linux but ok on windows
- 阅读更多 关于 Why are results of path.toString() failing to show all characters on Linux but ok on windows
问题 In my Java code I use a FileVisitor to traverse a filesystem and creating a structure of Paths, then later on this is converted to a json object for rendering in html. Running on Windows it runs okay even against a linux filesystem, running on Linux against the same (now local) filesystem it fails to render special characters properly when call toString() on a path i.e Windows debug output CreateFolderTree:createJsonData:SEVERE: AddingNode(1):Duarte Lôbo- Requiem and html displays ok as