Joey van Venrooij
New Pleskian
Hello,
When I upload a PHP file to my server via FTP all is fine and the website is working. But when I download it again the file is corrupted and there are characters like "styÐ% Ð% à¥" °£" 8% ð% @ ð% "
This only happens when I download the file with FTP and not with the file manager. If I upload the PHP file again the website won't work anymore because the server also can't interpreted the characters.
When I issue the command "file filename.php" it says:
file filename.php
filename.php: data
It works when I force the mode to be binary on the client side and when i forced binary mode it actually says the filetype correctly:
file filename.php
filename.php: HTML document, UTF-8 Unicode text
When I upload a PHP file to my server via FTP all is fine and the website is working. But when I download it again the file is corrupted and there are characters like "styÐ% Ð% à¥" °£" 8% ð% @ ð% "
This only happens when I download the file with FTP and not with the file manager. If I upload the PHP file again the website won't work anymore because the server also can't interpreted the characters.
When I issue the command "file filename.php" it says:
file filename.php
filename.php: data
It works when I force the mode to be binary on the client side and when i forced binary mode it actually says the filetype correctly:
file filename.php
filename.php: HTML document, UTF-8 Unicode text
Last edited: