Apache 2 German character set problem
Apache 2 German character set problem
am 06.06.2007 12:27:21 von cgkh.webservices
Have searched the web and cannot find an exact solution to this
problem.
I recently installed an ubuntu feisty fawn server for a client of mine
using at dynamicdns for local in-house development.
The system is working fine here:
http://algarvegold.mine.nu/
Normal web pages in the English language are being served up fine:
e.g.
http://algarvegold.mine.nu/portugal-web/services/index.htm
However, pages serving up languages other than english - german and
portuguese - are not displaying characters, with umlauts for example,
correctly.
I have had a look at the apache2.conf file and all the character sets
such as UTF8 etc appear to be listed.
When the pages are transferred to the on-line server there is no
problem.
Apart from ASCII hard coding the german characters can anyone suggest
what I am missing in the server config to correct this.
Many thanks for all suggestions.
Re: Apache 2 German character set problem
am 06.06.2007 13:27:00 von shimmyshack
On Jun 6, 11:27 am, "cgkh.webservices"
wrote:
> Have searched the web and cannot find an exact solution to this
> problem.
>
> I recently installed an ubuntu feisty fawn server for a client of mine
> using at dynamicdns for local in-house development.
>
> The system is working fine here:
>
> http://algarvegold.mine.nu/
>
> Normal web pages in the English language are being served up fine:
>
> e.g.
>
> http://algarvegold.mine.nu/portugal-web/services/index.htm
>
> However, pages serving up languages other than english - german and
> portuguese - are not displaying characters, with umlauts for example,
> correctly.
>
> I have had a look at the apache2.conf file and all the character sets
> such as UTF8 etc appear to be listed.
>
> When the pages are transferred to the on-line server there is no
> problem.
>
> Apart from ASCII hard coding the german characters can anyone suggest
> what I am missing in the server config to correct this.
>
> Many thanks for all suggestions.
you appear to be serving non utf8 content as utf8, perhaps the online
server doesnt have utf8 set to default. I would either, create all
content in utf8 that you intend to serve as utf8 (preferred) or allow
apache to decide.
Also your meta data inside the documents shuld either be removed or
changed to utf8 if you convert the documents' encoding.
Re: Apache 2 German character set problem
am 06.06.2007 15:15:26 von HansH
"cgkh.webservices" schreef in bericht
news:1181125641.726629.271130@k79g2000hse.googlegroups.com.. .
> http://algarvegold.mine.nu/portugal-web/services/index.htm
>
> However, pages serving up languages other than english - german and
> portuguese - are not displaying characters, with umlauts for example,
> correctly.
>
> I have had a look at the apache2.conf file and all the character sets
> such as UTF8 etc appear to be listed.
>
> When the pages are transferred to the on-line server there is no
> problem.
>
> Apart from ASCII hard coding the german characters can anyone suggest
> what I am missing in the server config to correct this.
If you're about to do encoding at all, do it the HTMLway eg: ëaut;
Try your luck by removeing lines like
it might be in conflict with the http header
Content-Type: text/html; charset=UTF-8
Alterneately use AddDefaultCharset Off to keep apache from suggesting a
characterset, be aware the windows-1252 might not be supported on all
platforms ...
HansH
Re: Apache 2 German character set problem
am 06.06.2007 15:57:41 von shimmyshack
On Jun 6, 2:15 pm, "HansH" wrote:
> "cgkh.webservices" schreef in berichtnews:1181125641.726629.271130@k79g2000hse.googlegroup s.com...>http://algarvegold.mine.nu/portugal-web/services/in dex.htm
>
> > However, pages serving up languages other than english - german and
> > portuguese - are not displaying characters, with umlauts for example,
> > correctly.
>
> > I have had a look at the apache2.conf file and all the character sets
> > such as UTF8 etc appear to be listed.
>
> > When the pages are transferred to the on-line server there is no
> > problem.
>
> > Apart from ASCII hard coding the german characters can anyone suggest
> > what I am missing in the server config to correct this.
>
> If you're about to do encoding at all, do it the HTMLway eg: ëaut;
>
> Try your luck by removeing lines like
>
>
> it might be in conflict with the http header
> Content-Type: text/html; charset=UTF-8
>
> Alterneately use AddDefaultCharset Off to keep apache from suggesting a
> characterset, be aware the windows-1252 might not be supported on all
> platforms ...
>
> HansH
HTML ENTITIES do not need to be used if the document is encoded,
stored and served with a consistent character set. Adding these
references will make everyone's life a lot harder, and unfortunately
you will find it hard to follow this proceedure when using chinese and
other chracter sets for which there are no html entity references
available
Re: Apache 2 German character set problem
am 06.06.2007 16:11:14 von HansH
"shimmyshack" schreef in bericht
news:1181138261.886572.251840@h2g2000hsg.googlegroups.com...
> On Jun 6, 2:15 pm, "HansH" wrote:
>> > Apart from ASCII hard coding the german characters can anyone suggest
>> > what I am missing in the server config to correct this.
>>
>> If you're about to do encoding at all, do it the HTMLway eg: ëaut;
> HTML ENTITIES do not need to be used if the document is encoded,
> stored and served with a consistent character set. Adding these
> references will make everyone's life a lot harder, and unfortunately
> you will find it hard to follow this proceedure when using chinese and
> other chracter sets for which there are no html entity references
> available
>
I fully agree. Though if OP is running desparate HTML ENTITIES are a lesser
evil than (extended) ASCII code.
HansH