Greetings to all!
Tell me how to get the correct file path? I pass a link to the file with the following name in the arguments:
GovHK 政府 一 站 通 : Homepage (Residents) .webloc
And instead of the name I get the following:
GovHK ???????: Homepage (Residents) .webloc
Respectively file.exists(); displays false;
As far as I dug on the Internet, this is ISO-8859-10 and Java does not support it. I did not find a complete solution for decoding a string, so I’ll appeal to you.
Thank you in advance!
UPD Conjure a simple equivalent of code:
public class Test { public static void main(String[] args) { if (args.length > 0) { File file = new File(args[0]); System.out.println("Exists: " + file.exists()); } } } And the file is uploaded here: file




D:\\GovHK 香港政府一站通:Homepage (Residents).weblocand returned true. Maybe it makes sense to also attach your code, and maybe even a file, to eliminate inaccuracies? - Mikita Berazouski September