I used FCKeditor to upload files normally all the time, but later I modified the fck core and added the information about the uploaded files to the database after the upload was successful.
I found that the file with the Chinese file name was not uploaded normally (occasionally failed). Later I found that it was caused by Chinese garbled characters (Chinese garbled characters were found before, but not affected by the file suffix)
When talking about Chinese garbled characters, it must first be caused by encoding problems.
So starting from the encoding conversion, tried to convert the UTF-8 to gb2312, but found no way to convert success anyway
I have seen many articles about modifying the configuration file.
<Globalization requestencoding = "UTF-8" responseencoding = "UTF-8"/> This is quite easy, but other pages are messy, because other pages are based on gb2312
Here, a sudden flash of light is shining. Because my fck is a separate directory, I specify a dedicated web for this directory. config, It is not complete to specify the Encoding As UTF-8. A try is really effective, and the structure is simple!
To share with you.
The following shows all the contents of a relatively clean web. config:
Web. config
<? XML version = "1.0" encoding = "UTF-8"?>
<Configuration>
<System. Web>
<Compilation defaultlanguage = "C #" DEBUG = "true"/>
<Authorization>
<Allow users = "*"/>
</Authorization>
<Trace enabled = "false" requestlimit = "10" pageoutput = "false" tracemode = "sortbytime" localonly = "true"/>
<Customerrors mode = "off"/>
<Globalization requestencoding = "UTF-8" responseencoding = "UTF-8" fileencoding = "UTF-8"/>
<Pages validaterequest = "false" enableeventvalidation = "false" enableviewstatemac = "false" viewstateencryptionmode = "never"/>
<Xhtmlconformance mode = "Legacy"/>
<Httpruntime maxrequestlength = "2097151" executiontimeout = "3600"/>
</System. Web>
</Configuration>