Answer the question
In order to leave comments, you need to log in
Change text encoding when uploading to server?
I upload files to the server (it doesn't matter if it's .html or .py) - in the files, all Cyrillic characters change the encoding from utf-8 to windows-1251 and look something like this "ОткудР".
In html files I charset utf-8
also specify in python # -*- coding: utf-8 -*-
But this does not help. I tend to think that some changes were made in the server settings, because before that everything worked ok.
Nginx installed.
Guys, tell me which way to dig?
Answer the question
In order to leave comments, you need to log in
I found the reason for changing the encoding - in WinSCP, in settings / editors / built-in, there was windows-1251. Changed to utf-8 and now everything is ok when uploading to the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question