2016-08-25 7 views
0

ElfinderクライアントサーバーAPI 2.0を使用して、と私は、アラビア語で一部のフォルダを持っていますすべてのファイルがアラビア語のファイルであると期待されています。ElfinderClientサーバーAPIアラビア語関連リンク言語

はまた、私は以下のようなクラスelfinder内json_encodeを変更しようとしました:

JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES 

が、それでも同じ結果

すべてのヘルプをしてください?

答えて

0

elFinderはUTF-8以外の文字エンコーディングのファイルシステムに接続するため、configs encodinglocaleを正しく設定する必要があります。

elFinder 2.1.xが必要です。

$opts = array(
    'roots' => array(
     array(
      'driver' => 'LocalFileSystem', 
      'path' => '/path/to/files/', 
      'URL' => 'http://localhost/to/files/', 
      'encoding' => 'YOUR ENCOFDING', 
      'locale' => 'YOUR LOCALE' 
     ), 
    ) 
); 
+0

私はアラビアリストされたファイルにロケールに関する を見ることができないです、エンコーディングUTF-8が、それでも同じ問題を試してみました、あなたはそれを設定する方法を私を助けてくださいだろうか? ありがとう –

+0

あなたのサーバーエンコードはどれですか?その値を設定してください。 –

+0

iconvで治療するので適切な値を設定してください。 –

0
$opts = array(
// 'debug' => true, 

'roots' => array(
    array(
     'driver'  => 'LocalFileSystem',   // driver for accessing file system (REQUIRED) 
     'path'   => '../files/',     // path to files (REQUIRED) 
     'URL'   => dirname($_SERVER['PHP_SELF']) . '/../files/', // URL to files (REQUIRED) 
     'uploadDeny' => array('all'),    // All Mimetypes not allowed to upload 
     'uploadAllow' => array('image', 'text/plain'),// Mimetype `image` and `text/plain` allowed to upload 
     'uploadOrder' => array('deny', 'allow'),  // allowed Mimetype `image` and `text/plain` only 
     'accessControl' => 'access' , 
     'locale' => 'Arabic_Saudi Arabia.1256' 
    ) 
) 
); 

// run elFinder 
$connector = new elFinderConnector(new elFinder($opts)); 
$connector->run(); 
関連する問題