Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    ä ö ü in filenames

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 212 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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:
              dd.append(item)
                  
          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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        Hi,

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post