Quantcast

WG: Bug or feature: UTF8 in HTML files

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

WG: Bug or feature: UTF8 in HTML files

Beyer, Frank
There is another solution for this feature:

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, ...

Frank

El Martes, 4 de Enero de 2005 08:12, Alex Roitman escribió:
> Pablo,
>
> 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
have

> > 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
fault.
>
> Let me know if this was the case,
> Alex

Hello Alex,

You are absolutely right. My web browser sees locally the UTF8 correctly but
I
am serving my pages from apache and the problem is there. I have tried to
use
the  "AddDefaultCharset utf-8" directive to my apache web server but it does

not work. I will have a more thorough look at it.

Thanks

Pablo.






-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Loading...