I will just ask if anyone knows using python 2.7, how will i be able to pass a unicode string (e.g. Japanese filename) as a commandline argument of my python script. Once this filename is passed to the function/method correctly, some file processing will be done (e.g. metadata extraction / retrieval) by some engine (a DLL, which is identified to have unicode support). I've tried the following but unfortunately, python crashes:
Passing of the filename to the method that will process the file:
processingMethod(unicode(argv[1], "utf-8", errors="ignore").encode("utf-8"))
on the method, this is how I decode the string passed:
unicode(file_path).decode("utf-8")
Any feedback will be of great help. Thanks a lot!