forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: bino on January 02, 2006, 03:28:21 pm
-
After some efforts I created my own skin for coppermine. It´s all looking nicely, however I have this weird space I can´t get rid off (see attachment). Does anyone have an idea why?
I had a look at the soure code and got this:
<html dir="ltr">
<head>
<title>
Any idea how to get rid off this ""?
-
Look for blank spaces before <?php and after ?> in your theme.php file.
-
There were some spaces at the end and deleted them.
Now I don´t have it anymore with internet explorer but firefox still shows the problem.
-
Link?
Have you cleared your browser's cache?
-
link to fotopage
and yes, cleared everything (cache, cookies,...)
-
It appears to be your language file. Switch to english and the characters go away.
-
It appears so. Thanks
It is caused when I edit my language file with notepad. I have no idea why that causes problems tho. :-\
-
The weird symbols you encountered are byte order marks (http://en.wikipedia.org/wiki/Byte_Order_Mark) from utf-8. They usually come when using an editor like Notepad to edit utf-8 encoded file. Although WIndows doesn't display the BOM, it deliberately adds it to any UTF-8 encoded file. When uploading this file, your webserver/browser display what actually is there.
Recommendation: get the most recent language file from the stable branch and upload it to your server, replacing the one that exists there already. If you need to edit the file before uploading, use an editor that is capable to edit utf-8 files properly without adding the BOM, or remove the BOm manually after editing (but before downloading). This can be done with a tool like "Replace in Files (http://www.emurasoft.com/replall/)", which is really a very handy tool not only for removing the BOM.