Hi,
I'm working on Japanese version of Windows98.
I think Pyhton can handle Japananese filename.
How about this:
---------------------------------------------------------
C:\Scr\PY>python
ActivePython 2.5.1.1 (ActiveState Software Inc.) based on
Python 2.5.1 (r251:54863, May  1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import re
>>> files = os.listdir('.')
>>> u = unicode(r'パイソン', "mbcs")
>>> pat = re.compile(u)
>>> for f in files:
...   f = unicode(f, "mbcs")
...   m = pat.search(f)
...   if m:
...     print f
...
パイソン.txt
パイソン.BAK
>>> import re
>>>
------------------------------------------------

_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to