G
G
godsplane2020-01-28 09:51:39
Character encoding
godsplane, 2020-01-28 09:51:39

How to solve the problem with encoding violation when uploading files via FTP?

This is not the first time that I upload files and there is this instead of Cyrillic
5e2fd9b7c0c75689640999.png

I know that you can change the encoding in the editor, but then it crashes on the site when uploading back, and changing it back and forth is somehow not convenient, maybe there is some kind of universal option? Hosting runs, but in the site files there is a template from Gino hosting.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Pankov, 2020-01-28
@godsplane

You have the encoding "windows-1251" on the page.
You need to use utf-8 everywhere and there will be no such problems.
1. Change the editor's encoding so that the letters become normal, cut the text of the page to the clipboard.
2. Change the editor encoding to utf-8 and paste the page text back. Cyrillic should remain normal, but in a different encoding.
3. Specify charset=utf-8 in the meta tag.
4. Save and upload FTP
5. ...
6. PROFIT!!!111

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question