1. Place a .htaccess file in the folder on the apache server.
But the best way is:
2. Rename the files from *.html to *.html.utf8
So all browser identify the files as utf-8 and the display is correct.
It would be nice to have this option in the export dialog, according to
htnl, php, ...
El Martes, 4 de Enero de 2005 08:12, Alex Roitman escribió:
> On Tue, Jan 04, 2005 at 07:48:37AM +0100, Pablo de Vicente wrote:
> > I have noticed that when generating a web site all HTML files are
> > generated as UTF-8, whereas I need them in ISO-8859-1 since accents are
> > not correctly handled in the former case by the browsers. So, now, I
> > to run a script on the generated files to convert them from UTF-8 to
> > ISO-8859-1, like this:
> > iconv -f utf8 -t iso8859-1 fileInUTF8.html -o fileInISO.html
> > Is this a bug or is there a way to generate them in ISO8859-1?.
> We cannot always enforce a given charset, since we don't know for sure
> what the user wants. If e.g. the data is cyrillic then attempting to
> use ISO-8859-1 will give funny results. Same with chinese.
> In my experience, most browsers actually handle UTF8 fine. The problem
> usually lies with apache, which by default enforces ISO-8859-1 charset,
> so any non-ISO-8859-1 8-bit text comes out with wrong accents. A solution
> to this is a short directive to apache, I forget which one at the moment
> To really see whether it's an apache vs. a browser problem, open the
> file locally (i.e. on your computer using file:///home/user/filename URL).
> If the text appears correctly, there's a good chance it was apache's
> Let me know if this was the case,
You are absolutely right. My web browser sees locally the UTF8 correctly but
am serving my pages from apache and the problem is there. I have tried to
the "AddDefaultCharset utf-8" directive to my apache web server but it does