My browsers never use Unicode (UTF-8) My browsers never use Unicode (UTF-8)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

My browsers never use Unicode (UTF-8)

Started by Seelachs, November 24, 2005, 05:59:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Seelachs

If I look at the html source code of http://sardinien.sa.funpic.de/galerie/index.php  I can see the tag <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
But my browsers (both Firefox 1.0.7 and Internet Explorer 6 SP2) use the Western ISO-8859-1 coding even if I set the Firefox defaults to Unicode.
So I always see ß, ä and so on instead of ß, ä ...
But e.g. Wikipedia and the new demo at http://coppermine-gallery.net/Obsolete are displayed correctly in Unicode.
Why cpg not? (I just installed the newest version 1.4.2)


Greetz and thx
SehLax

daniel_w


Joachim Müller

may be related to the pop-up ad that your webhost adds - it keeps the page from being valid.

daniel_w


Joachim Müller

doesn't matter, the pop-up ruins the html ouput, no matter where this is being hosted. There mustn't be any html output after </html>. Attached is the output your page creates.

Joachim

daniel_w

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="ltr">
<head>


This ist what my output - without any changes to the template...

(and there is no output after the </html>)

Joachim Müller

the pop-up may not be visible for you, but it is for others. This is something funpic.de does. The "funny" chars at the start come from a BOM - did you edit your language file?

daniel_w

Sorry, but again: I'm running coppermine on my own server - no funpic! And what is "BOM"? (No, I did no changes to the language file)

Joachim Müller

Look, you can take my word on it that your page looks different to you than it looks to others - did you never ask yourself why funpic.de is giving you a subdomain for free? I attached a screenshot how your site looks for me. If you don't believe me, go to another PC and view your gallery there.
BOM: http://en.wikipedia.org/w/index.php?title=Byte_Order_Mark

daniel_w


Joachim Müller

ah ok, sorry. Guess this comes from thread hijacking. Seems like you haven't actually posted a link to your site so far. Do so now.

Seelachs

Quote from: GauGau on November 24, 2005, 11:41:14 PM
doesn't matter, the pop-up ruins the html ouput, no matter where this is being hosted. There mustn't be any html output after </html>. Attached is the output your page creates.

Joachim

Yeah, I always see my popup  :(
But they didn't have one in the older days ...
So maybe I have to translate the Language file to ISO or change my hoster   ??? :-\\
But thanks for your help.

alanlai

put this:

<?php header("Content-Type: text/html; charset=utf-8"); ?>

into your "custom header" file

it helps

Seelachs

Quote from: alanlai on November 28, 2005, 01:41:34 PM
put this:

<?php header("Content-Type: text/html; charset=utf-8"); ?>

into your "custom header" file

it helps

Yeah, thanks a lot, it really works!
So, GauGau, you should include this into the great CPG!