Strange characters in Mozilla

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
k0065126
Posts: 5
Joined: Tue Dec 11, 2007 7:37 pm

Strange characters in Mozilla

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

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
k0065126
Posts: 5
Joined: Tue Dec 11, 2007 7:37 pm

Two replies

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

Post 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
k0065126
Posts: 5
Joined: Tue Dec 11, 2007 7:37 pm

Many thanks

Post 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
Post Reply