Yeah, when I create a file with NppFTP, it is always ANSI encoded
-
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.
-
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 > Encodingand 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login