Page 1 of 1
Strange characters in Mozilla
Posted: Tue Dec 11, 2007 7:55 pm
by k0065126
Script URL:
http://www.pyner.org.uk/GBook/gbook.php
Version of script: 1.5
Hosting company: Supanames
URL of phpinfo.php: No idea
URL of session_test.php: No idea
What terms did you try when SEARCHING for a solution: character, Mozilla
Write your message below:
Yesterday I downloaded the latest version of the script and am testing it out. When I view the guestbook in Opera or IE7 it looks fine, but in Mozilla I see some unusual characters at the top left of the screen when viewing or signing the guestbook.
They are ''. The ASCII codes for these characters appear to be 63, 187 and 63, and in Unicode Hex they seem to be 010F, 00BB and 017C.
Can anyone explain why they are appearing?
Thanks,
Viv
Posted: Tue Dec 11, 2007 8:30 pm
by Henrie
Hello Viv,
I'm not completely sure because in the post the exact error is not described, but if I remember well your problem is the same as described in the following post
viewtopic.php?t=1602
Greetings,
Henrie
Posted: Tue Dec 11, 2007 8:37 pm
by Klemen
Try downloading GBook again and upload gbook.php again. Make 100% sure it is uploaded in ASCII mode.
I checked the demo GBook in FF and it doesn't show up there, but I do see them in your GBook.
Two replies
Posted: Tue Dec 11, 2007 11:17 pm
by k0065126
Thanks to both for the quick response.
Henrie, the error is that when I open my guestbook in Mozilla there are three characters, '', which appear at the top left of the screen. If I use IE7 or Opera these characters do not appear. I did check that link earlier but the problem page is no longer on the web, so I cannot see if the error is the same.
Klemen, I have downloaded GBook again and used FileZilla to upload gbook.php again, ensuring it is in ASCII mode, although MS Expression Web is set to upload php files as ASCII so the original file should have been uploaded correctly. The problem remains.
The only file I have amended is settings.php, as shown in the excellent instructions, and this was done in MS Expression Web. All of the files, except readme.htm, have been uploaded to the server, keeping the directory structure the same as when unzipped.
Viv
Posted: Wed Dec 12, 2007 6:24 am
by Henrie
Hello Viv,
I downloaded your guestbook page as html and then it gave errors in both Firefox and IE.
When I opened it in PSPad (my editor of choice) I saw the page was saved in UTF-8.
This conflicts with the setting of
Code: Select all
<meta http-equiv="Content-Type" content="text/html;charset=windows-1250">
in the head of the html page.
When I changed this line to
Code: Select all
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
the strange characters were gone.
So the solution seems to be, open the file gbook.php and replace all instances of
windows-1250 to
UTF-8
Greetings,
Henrie
Many thanks
Posted: Wed Dec 12, 2007 9:16 am
by k0065126
Henrie,
Many thanks for solving the problem. I have just made the change you suggested in Expression Web and the strange characters have now disappeared.
All the best, Viv