File name garbled is usually caused by Chinese, because CKEditor use is UFT8 encoding if we use the page is GBK or gb2312 can be garbled problem, the solution as long as the upload file rename.
Open the editor/filemanager/connectors/php directory under Commands.php, find the FileUpload function,
| The code is as follows |
Copy Code |
$sExtension = substr ($sFileName, (Strrpos ($sFileName, '. ') + 1)); $sExtension = Strtolower ($sExtension); After adding $sFileName = rand (0,100). ".". $sExtension; |
The RAND function here can change the renaming rules on its own.
Another way to upload a picture file name garbled solution to use the Iconv function to encode the file name, but there is still a problem with the same name, so for fckeditor upload picture filename is best or rename
http://www.bkjia.com/PHPjc/632759.html www.bkjia.com true http://www.bkjia.com/PHPjc/632759.html techarticle file name garbled is usually caused by Chinese, because CKEditor use is UFT8 encoding if we use the page is GBK or gb2312 there may be garbled problems, the solution as long as the upload text ...