Arabic character

  •  09-24-2011, 7:38 AM

    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();
    ?>
View Complete Thread