FCKEditor is an out-of-town editor and does not support Chinese well. If we directly use Chinese file names, we will get errors or fail to upload images. Let me introduce the solution below.
Share these two modification methods below.
Method 1,
代码如下 |
复制代码 |
打开/editor/filemanager/connectors/php/commands.php,找到$sFileName = $oFile[¹name¹] ;在后面添加一行:$sFileName = iconv("utf-8","gbk",$sFileName);
|
Method 2 (recommended),
The code is as follows
代码如下 |
复制代码 |
打开/editor/filemanager/connectors/php/commands.php,找到$sExtension = strtolower( $sExtension ) ;在后面添加一行:$sFileName = time().".".$sExtension;
|
|
Copy code |
|
Open /editor/filemanager/connectors/php/commands.php and find $sExtension = strtolower( $sExtension ); add a line after it: $sFileName = time().".".$sExtension;
http://www.bkjia.com/PHPjc/632165.htmlwww.bkjia.comtrue
http: //www.bkjia.com/PHPjc/632165.htmlFCKEditor editor is a foreign language and does not support Chinese well. If we directly use Chinese file names, an error will occur. , or failed to upload the image, let me introduce the solution below. Share below...