Arabic & Persian Charcter file name Problem

absoonoo

Verified User
Joined
Aug 19, 2015
Messages
32
I migrated a Wordpress website from a old direct admin and centos server to one running Direct Admin. There are a lot of files with UTF-8 Farsi character file names in the upload folder and they worked just fine on the old server.

On the direct admin server, the file names display wrong charecter.
After upload file name : فایل.png convert to : File _#1601__#1575__#1740__#1604_.png
I change LANG_ENCODING=iso-8859-1 to UTF-8 in /usr/local/directadmin/data/skins/enhanced/lang/en/lf_standard.html file.
Rebot server but not every change in server.

My server info:
Apache 2.4.16
DirectAdmin 1.48.3
Exim 4.83
MariaDB 10.0.18
Named 9.9.4
dovecot 2.2.18
pure-ftpd 1.0.41
Php 5.4.43

I have searched Google and find nothing. Can somebody help me?

Thank you,
 
I migrated a Wordpress website from a old direct admin and centos server to one running Direct Admin. There are a lot of files with UTF-8 Farsi character file names in the upload folder and they worked just fine on the old server.

On the direct admin server, the file names display wrong charecter.
After upload file name : فایل.png convert to : File _#1601__#1575__#1740__#1604_.png
I change LANG_ENCODING=iso-8859-1 to UTF-8 in /usr/local/directadmin/data/skins/enhanced/lang/en/lf_standard.html file.
Rebot server but not every change in server.

My server info:
Apache 2.4.16
DirectAdmin 1.48.3
Exim 4.83
MariaDB 10.0.18
Named 9.9.4
dovecot 2.2.18
pure-ftpd 1.0.41
Php 5.4.43

I have searched Google and find nothing. Can somebody help me?

Thank you,

Resolved:
1) When you login to DA, view the page source.
In the <head> section, check the <meta> tag to see what encoding it's set to use.

This is the deafult:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

and with your changes, you'd want it to show:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

if you don't see UTF-8 then something didn't work in the change.
Ensure your DA account is using the "enhanced" skin, and you're using the "en" (English) language pack.

2) If that's correct, then check the encoding in your browser.
For example in Chrome:
Options (top right button) -> More Tools -> Encoding -> Unicode (UTF-8)

should be selected.

3) If the browser is set to use UTF-8, try re-uploading again, as the files must be saved in the correct format to use the feature.

4) This would be the related feature we'd be relying on for it to work correctly:
http://www.directadmin.com/features.php?id=1390
 
Resolved

1) When you login to DA, view the page source.
In the <head> section, check the <meta> tag to see what encoding it's set to use.

This is the deafult:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

and with your changes, you'd want it to show:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

if you don't see UTF-8 then something didn't work in the change.
Ensure your DA account is using the "enhanced" skin, and you're using the "en" (English) language pack.

2) If that's correct, then check the encoding in your browser.
For example in Chrome:
Options (top right button) -> More Tools -> Encoding -> Unicode (UTF-8)

should be selected.

3) If the browser is set to use UTF-8, try re-uploading again, as the files must be saved in the correct format to use the feature.

4) This would be the related feature we'd be relying on for it to work correctly:
http://www.directadmin.com/features.php?id=1390
 
Back
Top