UTF-8 directory indexes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZYV
    Senior Member
    • Sep 2005
    • 315

    #1

    UTF-8 directory indexes

    Hello!

    After the recent Apache upgrade, if you put the following line in your .htaccess:

    AddDefaultCharset UTF-8

    it's no longer enough if you want Apache to serve your directory indexes in UTF-8 as well as the regular text/plain and text/html files (you might need this if you use custom ReadmeName directives etc.). You would need to add another line which is:

    IndexOptions Charset=UTF-8

    and it will fix the issue. Many thanks to AndrewT for investigating this problem and supplying me with a working solution.

    Hope that helps someone,

    -Z.
Working...