XFileSharing Free - {Problem fixed} Arabic support in file name?

Message
Author
doowane
Posts: 6
Joined: Nov 30, 2007 7:01 pm

{Problem fixed} Arabic support in file name?

#1 Postby doowane » Nov 30, 2007 7:05 pm

Hello,

I just buy XfileSharing and installed without any problem.
Thank you for that product.

I have a litle problem when I upload a file with an arabic name I got strange characters...
Is it possible to have the arabic showing, or have the name renamed automatically?

Here a screen copy : http://netwane.net/print.png

Thank you.
Last edited by doowane on Dec 06, 2007 9:48 am, edited 1 time in total.

Files-Up
Posts: 17
Joined: Nov 25, 2007 10:30 pm

#2 Postby Files-Up » Dec 03, 2007 4:27 am

Me too

i want this :oops:

or if u can remove non english characters from the link with .htacess/mod_rewrite

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

#3 Postby PilgrimX182 » Dec 04, 2007 11:00 am

2doowane: what was the link without domain name? What codepage do you use to display arabic symbols correctly?

2Files-Up: I can remove non-english chars when generating links or on Download page, or on both steps.

"Remove non-english chars from filename on Download page" hack:
in index.cgi find

Code: Select all

$fname=~s/\.{2,99}/./g;
and add below:

Code: Select all

$fname=~s/[^a-z0-9\_\-\+\.\(\)\@\!\'\&]+//ig;

doowane
Posts: 6
Joined: Nov 30, 2007 7:01 pm

#4 Postby doowane » Dec 05, 2007 8:25 am

Hi

Thanks for your answer

It is working now

Just changed to Windows-1256

Files-Up
Posts: 17
Joined: Nov 25, 2007 10:30 pm

#5 Postby Files-Up » Dec 08, 2007 6:02 pm

PilgrimX182 wrote:2doowane: what was the link without domain name? What codepage do you use to display arabic symbols correctly?

2Files-Up: I can remove non-english chars when generating links or on Download page, or on both steps.

"Remove non-english chars from filename on Download page" hack:
in index.cgi find

Code: Select all

$fname=~s/\.{2,99}/./g;
and add below:

Code: Select all

$fname=~s/[^a-z0-9\_\-\+\.\(\)\@\!\'\&]+//ig;

this did not work man

see this link

ربيعالأسمر~&_Atilde - 1.0 Mb