Hi
is there any way to manage the issue of supporting arabic file names
because the script only output the name in ths toe ways example :
http://www.usharer.com/JQRVPKRBAUMN/__1 ... _1569_.iso
or
http://www.usharer.com/BWWZ5KGTWC84/_____________.rar
So what can we do to make the script read the clear arabic files to be like this as example :
http://www.usharer.com/JQRVPKRBAUMN/كتاب.iso
also in description field the same proplem
XFileSharing Free - Supporting Arabic Issue
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
This is a bit complicated, but let's try this:
1) in unpload.cgi comment this line:
2) in DataBase.pm find
and add below:
Now probably this will work
1) in unpload.cgi comment this line:
Code: Select all
$fhash{file_name_orig}=~s/[^a-zA-Z0-9-_\.]/_/gs;
Code: Select all
$self->{dbh}=DBI->connect("DBI:mysql:database=$c->{'db_name'};host=$c->{'db_host'}",$c->{'db_login'},$c->{'db_passwd'}) || die ("Can't connect to Mysql server.".$! );
Code: Select all
$self->Exec("SET NAMES 'utf8' COLLATE 'utf8_general_ci'");