Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Yeah, when I create a file with NppFTP, it is always ANSI encoded

    Plugin Development
    2
    2
    2640
    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.
    • Sergey Den
      Sergey Den last edited by

      I can create a file using UTF-8 encoding in Npp, and place it on my web server using a standalone FTP client. From here, when I download the file using NppFTP, the encoding has changed to ANSI, and the EOF also change from “UNIX” (default in my Npp configuration), to “Dos/Windows”

      This also happens if I create the file on the server using NppFTP and download it using NppFTP.

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

        Some things to keep in mind. ANSI is a subset of UTF-8. So if there are no UTF-8 characters then Notepad++ detects it as ANSI. You can force ANSI files to be UTF-8 by using Settings > Preferences > New Document > Encoding and select UTF-8 and apply it to opened files.

        Also keep in mind some FTP clients transfer files in ASCII mode which translates the line endings automatically. I’m not sure if NppFTP has an option to change that (I rarely ever use it personally), if not then you probably want to submit a bug/feature directly to that project.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors