IIS站点查看文本文件乱码的问题

修改web.config文件:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="true" showFlags="Date, Time, Size, Extension, LongDate" />
        <staticContent>
            <remove fileExtension=".txt" />
            <mimeMap fileExtension=".txt" mimeType="text/plain;charset=utf-8" />
        </staticContent>
    </system.webServer>
</configuration>

原文地址:https://blog.csdn.net/youbl/article/details/78028092

猜你喜欢

转载自www.cnblogs.com/stgp/p/12036480.html