Page 1 of 1

Strange symbol on sign form page

Posted: Sat Aug 04, 2012 7:03 pm
by scpo
Script URL: http://www.kenbrown.info/aka68/
Version of script: 1.7
Hosting company: IX Web Hosting
URL of phpinfo.php: http://www.kenbrown.info/aka68/guestboo ... php?a=sign
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Strange symbols, code, , etc.

Write your message below:

To the far left of screen there is a strange symbol showing on Sign Guestbook page. On page souce, line 47, it shows as  just before <div id="gbook_guestbook" align="center">. I cannot find these symbols anywhere in the coding to delete.

Thanks, Ken

Re: Strange symbol on sign form page

Posted: Sun Aug 05, 2012 4:54 pm
by fugitivewife
I looked at your source code and saw your "strange" symbols. I copied some of your source code so you can see where exactly they are. They are directly AFTER the NOTICE END closing and before the <div id="gbook_guestbook". Check the very bottom of your "overall_header" file or the very top portion of your sign_form file. This is where that code comes from. Hope this helps


<!--NOTICE -->
<!--NOTICE END -->

<div id="gbook_guestbook" align="center">
<span class="gbook_guestbook">Sign guestbook</span><br class="clear" />
<span class="gbook_required">Required fields are <b>bold</b>.</span>
</div>

<form action="gbook.php" method="post">

Re: Strange symbol on sign form page

Posted: Sun Aug 05, 2012 9:01 pm
by scpo
Thank you for your reply. The strange symbols does not exist and cannot be deleted in the coding. It's true it shows on the source code and appears on the page when the site is open, but does not on the coding sheet. This was really getting to me as to why. Before posting for help, I did a search and could not find anything. Later I did another search and found an old posting that indicated the problem was cause by using charset=windows-1250. I change this to utf-8 and the strange symbols disappeared.
So, problem is solved.

Re: Strange symbol on sign form page

Posted: Mon Aug 06, 2012 7:10 pm
by Henrie
indeed the  is caused by the BOM (Byte Order Mark) of the UTF-8 file. Some browsers show the BOM like  and some do not display it. The safest way is to save your files in the same encoding as you define in the charset of your page.

Greetings,
Henrie