解决asp.net中使用FckEditor上传文件,中文名称乱码的问题

在FCKeditor文件夹中添加Web.config文件,Web.config文件代码如下:

<?xml version="1.0" encoding="gb2312" ?>
<configuration>

  <system.web>

    <compilation defaultLanguage="c#" debug="false" />

    <authorization>
      <allow users="*" />
    </authorization>

    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />


    <customErrors mode="Off" />


    <globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312"    />


    <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode ="Never" />

    <xhtmlConformance mode="Legacy"/>

    <httpRuntime maxRequestLength="2097151" executionTimeout="3600"/>
  </system.web>

</configuration>

    原文作者:游程编码问题
    原文地址: https://blog.csdn.net/z542601362/article/details/7928625
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞