• Login
Community
  • Login

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

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
2 Posts 2 Posters 3.0k 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.
  • S
    Sergey Den
    last edited by Apr 6, 2016, 5:31 PM

    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
    • D
      dail
      last edited by Apr 6, 2016, 9:43 PM

      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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors