Arabic character

Last post 11-10-2011, 8:31 AM by alnadabi. 3 replies.
Sort Posts: Previous Next
  •  09-24-2011, 7:38 AM 70187

    Arabic character

    I try to use your demo to upload an arabic file (موشح اي بارق العلم.mp3)
     
    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <?php
    $uploader=new PhpUploader();
    $mvcfile=$uploader->GetValidatingFile();
    if($mvcfile->FileName=="accord.bmp")
    {
    $uploader->WriteValidationError("My custom error : Invalid file name. ");
    exit(200);
    }
     //USER CODE::
    echo 
    $mvcfile->FileName;
    The displayed value is : موشح %u0627%u064A %u0628%u0627%u0631%u0642 %u0627%u0644%u0639%u0644%u0645.mp3 
     Could you tell me how can I show corrrectly this value
     
    $targetfilepath= "savefiles/myprefix_" . $mvcfile->FileName;
    if( is_file ($targetfilepath) )
    unlink($targetfilepath);
    $mvcfile->MoveTo( $targetfilepath );
    $uploader->WriteValidationOK();
    ?>
  •  10-02-2011, 9:04 PM 70257 in reply to 70187

    Re: Arabic character

    We are investigating this issue and will get back to you as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-05-2011, 7:02 AM 70289 in reply to 70187

    Re: Arabic character

    Hi,
     
    Please download the last version.
     
    open the include_phpuploader.php , change this line
     
    $PhpUploader_FSEncoding="ISO-8859-1//TRANSLIT";
     
    to
     
    $PhpUploader_FSEncoding="ISO-8859-6//TRANSLIT";
     
    Regards,
    Terry
     
  •  11-10-2011, 8:31 AM 71316 in reply to 70289

    Re: Arabic character

    You must to uniform all charset between (browsers , serverside , Programming language  and DB Engine)  
     
    The best solution to solve this is to use utf-8 unicode charset in all of the above sources.
     
    long time back I shifted to utf-8 , and most of the scripts (Java, Javascript, Ajax, PHP, etc) works for me without any problem.  
     
     
    hope this help.
     
     
View as RSS news feed in XML