locked
How to set content types in IIS 6 per file extension? RRS feed

  • Question

  • I noticed that all my .aspx pages are coming back as application/xml content type, but the result is french accented characters are looking weird. I then set on IIS on response headers a content type of text/xml; charset=utf-8 which fixed the accented character issue but made all other files, even css, js, images, etc... that content type too and that broke pages. Is there a way I can set a content type of text/xml; charset=utf-8 only on .aspx pages?

    Thanks





    • Edited by sp.user Thursday, July 20, 2017 2:37 PM
    • Moved by 宝宝徐 Tuesday, July 25, 2017 1:43 AM
    Thursday, July 20, 2017 2:32 PM

All replies

  • Hi sp.user,

    Thank you for posting in MSDN forum. 

    This forum is discussing about .Net Framework setup and servicing, as your question is much related to setting content types in IIS , I suggest you go to  https://forums.iis.net/ forum for a much professional support.

    Thank you for your understanding and cooperation.

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, July 21, 2017 3:13 AM