C # Use FCKeditor upload file Chinese name garbled problem---turn

Source: Internet
Author: User

The mention of Chinese garbled, the first is definitely due to the coding problem caused by the code conversion from the beginning, tried to convert UTF-8 to GB2312, but found no way to succeed

See a lot of articles about modifying configuration files

<globalization requestencoding= "UTF-8" responseencoding= "UTF-8"/> This is very easy, but the other pages are messy, because the other pages are based on the GB2312

Here suddenly a flash, because my FCK is a separate directory, I give this directory to specify a dedicated web. config, the specified encoding is utf-8 not complete, a test is valid, here in the FCK directory to add a configuration file. The test passed.

<?xml version= "1.0" encoding= "Utf-8"?>

<configuration>

<system.web>

<compilation defaultlanguage= "C #" debug= "true"/>

<authorization>

<allow users= "*"/>

</authorization>

<trace enabled= "false" requestlimit= "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"/>

</system.web>

</configuration>

C # Use FCKeditor upload file Chinese name garbled problem---turn

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.