Hi
On Fri, 05 May 2006 08:21:27 +0200, Mathieu Dimanche <mdimanche@...8...> wrote:
This morning, on my 1.5.0.2 ubuntu dapper firefox, with locale in french, all content is in french (menus and app summary), but the utf8 switch is not understood by firefox (which stays in iso-8859-1 mode); so all accents are broken. Maybe you need to get sure browsers clearly understand they must take html text as utf8 encoded.
Maybe it's due to the first char in the html source :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
this "" sounds suspicious.
These three signs are identification that the document is in UTF-8 format. I have another suspect; more bellow...
and you could try to add this line at the beginning of the file :
<?xml version="1.0" encoding="UTF-8"?>
I've add this line to the header and tested on localhost. With or without it, it opens in opera and firefox on windows with good autodetected encoding set(I've set locales for pages and UI in browser to 'fr'). But, according to those 3 signs on the beginning I suspect the server that it does not send header that the page is in UTF-8. Then firefox can not set right encoding. I've seen this before on another site and adding of header() function helped.
If you want me to test further once you corrected this, don't hesitate to ask :)
I will add the header() function, convert some other files to UTF-8 and mail here when the preview site at modevia is updated.
btw, in the french menu is translation for "Articles and Presentations" missing. I can correct it if someone provide translation.
cheers cornelius