尝试以下方法打开阿拉伯语 URL:
String cmd = "cmd.exe /C start \"Open file\" \"http://ar.wikipedia.org/wiki/موسوعة\"";
Runtime.getRuntime().exec( cmd );
不幸的是,正在打开的 URL 是http://ar.wikipedia.org/wiki/??????
关于为什么会这样或如何防止这种情况的任何想法?
在你问我为什么不使用 java.awt.Desktop.getDesktop().open() 之前,这是因为这个 Sun 错误:http ://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6457572