Forum Moderators: phranque

Message Too Old, No Replies

Apache and language fonts not working (iso-8859-1 + others)

         

Leys

3:03 pm on Jan 24, 2004 (gmt 0)

10+ Year Member



Hi everyone.

I run on apache 2.0.48.

I host several sites for people that come from eastern europe like poland and bulgaria.

They have problems on displaying their fonts correctly....what they do is input for example polish fonts but my server does not display them corectly on their pages.

People that are from the USA or west europe have no problems with this.

My apache is running on iso-8859-1.

Is this a problem on my apache server or is it their problem?

Thanks in advance guys!

[edited by: jdMorgan at 5:18 am (utc) on Feb. 7, 2004]
[edit reason] TOS 13 & 20 (borderline) [/edit]

bird

3:59 pm on Jan 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My apache is running on iso-8859-1.

Ideally, the server should have nothing to do with the character set of the pages served, because that can be different for each individual page. Your eastern european customers will have to include a charset declaration in their pages. For polish language (which is written in latin characters, there are no separte "polish fonts") that would probably be iso-8859-2, or some Windows specific character set.

In the simplest case, their files should start like this:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-2
" />
...

A more modern and standards conforming variation might look like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="pl
"
lang="pl
">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-2
" />
...

Interesting how many charset/unicode related threads are suddenly popping up this week. Or did I just miss those before?

Leys

9:08 pm on Jan 24, 2004 (gmt 0)

10+ Year Member



Ok thx i will try to explain this to them :)

camlost

4:39 am on Feb 7, 2004 (gmt 0)



I'm afraid this doesn't help. I live in east europe apache 2.0.48 behaves differently then 1.3.27.

All my web documents contain <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2" /> (or Windows-1250). However, this doesn't work. If I open *.html as files, it's ok. If I open then as URLs, it's not. I really do not know how to solve this problem. If you find a solution, please post it here. :-)

jdMorgan

5:16 am on Feb 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Apache's AddDefaultCharSet (Apache core directives) and AddCharSet (in Apache mod_mime), and make sure that the server's default settings are correct for your locale. For example, if AddDefaultCharSet is set to "on", then the default character set will be iso-8859-1. You may need to use "AddDefaultCharset off" or "AddDefaultCharset iso-8859-2".

You can also use the server headers checker [webmasterworld.com] to make sure your server is not returning any incorrect character set, language, or MIME-type headers.

Jim