PHP Integration Problem
pauschpageDOTcom
Joined: 2004-03-20
Posts: 118 |
Posted: Fri, 2007-06-29 08:57 |
Hello! I have a website with the switch($site){} function. $g2_Config['path'] = dirname(__FILE__) . '/gallery2/'; Now the problem.. When i open gallery2embedded.php - everything works good. Here is the included Site with the problem: Link Please help me ;-) |
|
Posts: 32509
> But when i load the file into my site - i have some bugs... with the ÄÖÜ'
see:
http://codex.gallery2.org/Gallery2:Embedding:Integration#An_entry_point
the stuff about utf-8.
you need to set the charset header in php and you need to set the html <meta tag for the charset too.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 118
Thanks for the answer!
I've changed now in entwurf.php & gallery2embedded.php
the meta tag into <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ i've added
<script>
if (!headers_sent()) {
header('Content-Type: text/html; charset=UTF-8');
}
</script>
Nothing has changed
How can I solve the problems with the admin site?