XFileSharing Free - Supporting Arabic Issue

Message
Author
mkkak
Posts: 13
Joined: May 14, 2008 6:53 pm

Supporting Arabic Issue

#1 Postby mkkak » Jun 05, 2008 11:43 pm

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



User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Jun 06, 2008 6:20 am

This is a bit complicated, but let's try this:
1) in unpload.cgi comment this line:

Code: Select all

$fhash{file_name_orig}=~s/[^a-zA-Z0-9-_\.]/_/gs;
2) in DataBase.pm find

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.".$! );
and add below:

Code: Select all

$self->Exec("SET NAMES 'utf8' COLLATE 'utf8_general_ci'");
Now probably this will work :)

mkkak
Posts: 13
Joined: May 14, 2008 6:53 pm

#3 Postby mkkak » Jun 08, 2008 2:18 pm

for sorrow it not working ..
the same result..