coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Seelachs on November 24, 2005, 05:59:06 PM

Title: My browsers never use Unicode (UTF-8)
Post by: Seelachs on November 24, 2005, 05:59:06 PM
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
Title: Re: My browsers never use Unicode (UTF-8)
Post by: daniel_w on November 24, 2005, 10:57:43 PM
same here
Title: Re: My browsers never use Unicode (UTF-8)
Post by: Joachim Müller on November 24, 2005, 11:05:08 PM
may be related to the pop-up ad that your webhost adds - it keeps the page from being valid.
Title: Re: My browsers never use Unicode (UTF-8)
Post by: daniel_w on November 24, 2005, 11:05:44 PM
I'm running my own server ;)
Title: Re: My browsers never use Unicode (UTF-8)
Post by: Joachim Müller 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
Title: Re: My browsers never use Unicode (UTF-8)
Post by: daniel_w on November 25, 2005, 09:38:34 AM
<!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>)
Title: Re: My browsers never use Unicode (UTF-8)
Post by: Joachim Müller on November 25, 2005, 09:43:59 AM
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?
Title: Re: My browsers never use Unicode (UTF-8)
Post by: daniel_w on November 25, 2005, 09:57:52 AM
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)
Title: Re: My browsers never use Unicode (UTF-8)
Post by: Joachim Müller on November 25, 2005, 10:06:52 AM
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
Title: Re: My browsers never use Unicode (UTF-8)
Post by: daniel_w on November 25, 2005, 10:10:08 AM
I'm not "Seelachs" - I'm "daniel_w" - and http://sardinien.sa.funpic.de/galerie/index.php is not my gallery...
Title: Re: My browsers never use Unicode (UTF-8)
Post by: Joachim Müller on November 25, 2005, 10:20:46 AM
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.
Title: Re: My browsers never use Unicode (UTF-8)
Post by: Seelachs on November 25, 2005, 01:11:35 PM
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.
Title: Re: My browsers never use Unicode (UTF-8)
Post by: 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
Title: Re: My browsers never use Unicode (UTF-8)
Post by: Seelachs on November 28, 2005, 03:02:11 PM
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!