How to change welcome and suspended page encoding to utf8 in DirectAdmin?

mbsmt

Verified User
Joined
Jul 24, 2013
Messages
138
Location
Mashhad, Iran
Hi.
I need to use UTF-8 encoding for texts inside welcome and suspended pages in DirectAdmin. When I paste the texts inside these files and save them, I see all letters changed to their HTML equal characters!

How can I solve this problem?
 
Hello,

Depending on a file editor you use, you might need to force opening a file in the desired UTF-8 encoding.
 
I've done it. Also I tried to upload my local file using DA file manger. But after finishing upload or creating new file, all letters convert to HTML format.
 
Try to create .htaccess file near to index file with the following content:

Code:
AddDefaultCharset UTF-8

If it does not help let me know your domain to see the page.
 
zEitEr I have not problem with output. I was asking about what I see when I click on editing file. (domain/suspended/index.html and domain/default/index.html).
I insert UTF-8 codes in these 2 files, and when I click on edit for them, I see my texts changed to HTML format.
 
This is my own codes:
cap1.JPG

and this is what I see on editing that file in DA:
cap2.JPG
 
Capri skin as well as enhanced skin by default use iso-8859-1 encoding, that's the cause. You should probably upload files with FTP manager or change skin to UTF-8.

Change lang/en/lf_standard.html

Code:
LANG_ENCODING=iso-8859-1

to

Code:
LANG_ENCODING=UTF-8

related:

- Creating a language pack for DirectAdmin
http://help.directadmin.com/item.php?id=35
 
Back
Top