Strange symbol on sign form page

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
scpo
Posts: 4
Joined: Sun May 20, 2012 12:47 am

Strange symbol on sign form page

Post 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
fugitivewife
Posts: 3
Joined: Sun Aug 05, 2012 4:47 pm

Re: Strange symbol on sign form page

Post 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">
scpo
Posts: 4
Joined: Sun May 20, 2012 12:47 am

Re: Strange symbol on sign form page

Post 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.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Strange symbol on sign form page

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply