Some birds are not meant to be caged, their feathers are just too bright.

Batch rename images from Chinese name to English Name

Apr3rd, 201612:53 pm

Too often we face a bunch of images with Chinese names , which sometimes is frustrating because Chinese names are not recognizable by most servers. One simple way to deal with this problem is to batch rename these images into English names with simple shell script. Here is one possible shell script.

Running this script, I found out some strange phenomena: part of the images can be successfully renamed, while the others collapse into infinite loops. I suspect that it might be the inability of this script to handle special Chinese characters, as shown below

I finally found a perfect solution to this problem with python script.