How to rename a file to Chinese?# Java - 爪哇娇娃
g*y
1 楼
Under windows, following code can rename English file name ->
new File("oldFile").renameTo(new File("newFile");
But when I replace the "newFile" with Chinese character, it turns to be "???"
and system can not rename it.
Anyone know how to do this?
Thanks!
new File("oldFile").renameTo(new File("newFile");
But when I replace the "newFile" with Chinese character, it turns to be "???"
and system can not rename it.
Anyone know how to do this?
Thanks!