RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
Supporting Arabic Issue

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free
View previous topic :: View next topic  
Author Message
mkkak



Joined: 14 May 2008
Posts: 13

PostPosted: Jun 05, 2008 11:43 pm    Post subject: Supporting Arabic Issue Reply with quote

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/__1605___1606____1571___1584___1603___1575___1585____1575___1604___1589___1576___1575___1581____1608____1575___1604___1605___1587___1575___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


Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2109
Location: UFO Lab

PostPosted: Jun 06, 2008 6:20 am    Post subject: Reply with quote

This is a bit complicated, but let's try this:
1) in unpload.cgi comment this line:
Code:
$fhash{file_name_orig}=~s/[^a-zA-Z0-9-_\.]/_/gs;


2) in DataBase.pm find
Code:
$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:
$self->Exec("SET NAMES 'utf8' COLLATE 'utf8_general_ci'");


Now probably this will work Smile
Back to top
View user's profile Send private message Visit poster's website
mkkak



Joined: 14 May 2008
Posts: 13

PostPosted: Jun 08, 2008 2:18 pm    Post subject: Reply with quote

for sorrow it not working ..
the same result..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group