Fix admin directory utf8 problem for Farsi in 5 minutes
The admin directory utf8 problem usually appears when editing a file and in the admin directory file by converting Persian characters to unreadable characters and annoying the users who use them.
This problem can be easily resolve within minutes if you have access to the server and the ssh environment.
The problem is due to the lack of encoding support for the default admin directory format that can only be resolved by changing to utf8.
If you use shared hosting you will not be able to solve this problem. Root access to the server is required to make these changes.
Assuming you are a server administrator and have access to ssh, you can fix the admin directory utf8 problem as described below.
Fix the admin directory utf8 problem
After connecting to ssh to get start first make sure that a proper editor like nano is install on your server.
The following command can be install on Linux base on Redhat.
yum install nano
To install nano on Debian-based systems such as Debian and Ubuntu, you can install the editor below.
apt install nano
Now enter the following command in the terminal.
nano -w /usr/local/directadmin/data/skins/enhanced/lang/en/lf_standard.html
You can search through the content of text files by pressing the CTL + w buttons.
Search for LANG_ENCODING = iso-8859 and then replace LANG_ENCODING = utf-8.
As such, encoding will support Farsi and the utf8 administrator problem will be completely resolved.
To make sure you fix the utf8 admin directory and reset the Apache service once and once,
reset the admin directory with the following instructions.
systemctl restart httpd systemctl restart directadmin
If you can’t fix the problem for any reason or need professional config server services,
you can use the server admin team.