Wednesday, July 11, 2007

UTF-8/Accented characters and 406 Not Acceptable?

If you have an URL with accented or UTF-8 characters and start getting a 406 not acceptable error, check if you have mod_security enabled in your apache configuration. I have mod_security enabled, and had also a particular setting "SecFilterCheckUnicodeEncoding On".

Although my Apache configuration has a "AddDefaultCharset UTF-8", mod_security blocked all URLs that have words in Portuguese with accents with a "406 Not Acceptable" error. Disabling this unicode encoding check fixed the problem.
Post a Comment