ä ö ü in filenames

  • On 27/08/2015 at 06:20, xxxxxxxx wrote:

    i read a directory via this function:

    def listdir(path) :
        dd = []
        files = (file for file in os.listdir(path) 
        if os.path.isfile(os.path.join(path, file)))
        for item in files:
        return dd

    if there an ü ä ö in the filename the string got cuttet like this:
    13_00_M_Jonas.tif < 13_00_Müller_Jonas.tif

  • On 28/08/2015 at 01:34, xxxxxxxx wrote:


    The problem you're having isn't related to the Cinema Python API but to the string encoding having german characters in the filenames.
    You should in this case encode/decode the filename strings. See this thread for more information.

Log in to reply