I am trying to do something like this with python 2.4:
afile = unicode('C:\\國立國語院.py', 'UTF-8')
execfile(afile.encode("UTF-8",'replace'))
And I get this error:
IOError: [Errno 2] No such file or directory: 'C:\\\xef\xbb\xbf\xe5\x9c\x8b\xe7\xab\x8b\xe5\x9c\x8b\xe8\xaa\x9e\xe9\x99\xa2.py'
So my question is: how can I make an execfile if the file I want to execute has a name with Korean characters?
Many thanks
source
share