Ueditor ASP UTF-8版上传图片出错或提示服务器返回错误解决方法

 第一步:打开ASP目录下的文件Uploader.Class.asp,找到:

Private Function CheckOrCreatePath( ByVal path )
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Dim parts
parts = Split( path, "" )
path = ""
For Each part in parts
path = path + part + ""
If fs.FolderExists( path ) = False Then
fs.CreateFolder( path )
End If
Next
End Function


修改为:

Private Function CheckOrCreatePath( ByVal path )
Set fs = Server.CreateObject("Scripting.FileSystemObject")
Dim parts
Dim root : root = Server.mappath("/") & ""
parts = Split( Replace(path, root, ""), "" )
path = root
For Each part in parts
path = path + part + ""
If fs.FolderExists( path ) = False Then
fs.CreateFolder( path )
End If
Next
End Function
第二步:用dreamweaver打开config_loader.asp另存一下文件,文件名相同,只是在另存时 记信勾选:包括Unicode签名(BOM)(S)。(我也不知道为什么要勾选这个,我也是网上偶然找到的,困扰了几天的问题一下解决了,因为我在搜索的时候发现很多的人遇到与我同样的问题,所以我把解决方案与大家分享)。