Unicode File Names
Seun Osewa
seun.osewa at gmail.com
Thu Oct 16 21:29:24 EDT 2008
Try Python 3. Python 3 strings are native by default, so the
os.listdir() in Python 3 should support the Japanese characters.
On Oct 17, 1:43 am, Jordan <jordan.tayl... at gmail.com> wrote:
> I've got a bunch of files with Japanese characters in their names and
> os.listdir() replaces those characters with ?'s. I'm trying to open
> the files several steps later, and obviously Python isn't going to
> find '01-????.jpg' (formally '01-ひらがな.jpg') because it doesn't exist.
> I'm not sure where in the process I'm able to stop that from
> happening. Thanks.
More information about the Python-list
mailing list