I created a static website in which each page has the following structure:
- Common things like heading, menu, etc.
- Page content in main content div
- Footer
On this website, all shared content is duplicated on every page. To improve maintainability, I reorganized the pages for server-side use (SSI) so that shared content is not duplicated. The structure of each page is now
- SSI for ordinary things like heading, menu, etc.
- Page content in main content div
- SSI for footer
On a refactored site, for some reason, French characters are no longer displayed properly in the page-specific content area, although they do display content enabled via SSI well.
An included header indicates the character set as:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
If I open one of the main content pages in a browser, it will tell me that the character encoding is ISO-8859-1. I tried adding the .htaccess file to the lines folder
AddDefaultCharset UTF-8 AddCharset UTF-8 .shtml AddCharset UTF-8 .html
But still, these annoying French accents do not display properly in the SSI version of the site.
html character-encoding server-side-includes ssi
DΓ³nal
source share