omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Problem with FTP accented characters in Pyhonista 3

    Pythonista
    1
    3
    1880
    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.
    • cvp
      cvp last edited by

      I use standard ftplib to access a NAS in FTP and my directories or files names could contain accents characters. In previous version of Pythonista I didn't have any problem, but since Pythonista 3, the names , for instance created by mkd see their accented characters transformed into %xx, ex Μu**%E1**oz for Muñoz.
      Just before FTP.mkd(name), a print(name) still shows accents characters.
      Thanks for your help.

      1 Reply Last reply Reply Quote 0
      • cvp
        cvp last edited by cvp

        This line alter ftp object creation has been sufficient!

        ftp.encoding = "utf-8"
        
        
        1 Reply Last reply Reply Quote 0
        • cvp
          cvp last edited by

          Not found by myself but on a french forum by searching on Google for
          "python 3 ftplib accents"

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors