£ replaced with £ when message posted using Firefox

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
deejaysly
Posts: 12
Joined: Sat Jul 15, 2006 2:07 am

£ replaced with £ when message posted using Firefox

Post by deejaysly »

Script URL:
Version of script: 1.22
Hosting company: Personal Web Server
URL of phpinfo.php: (using PHP 5.1.2)
URL of session_test.php: ?
What terms did you try when SEARCHING for a solution: £ (but no replies to that thread!)

Write your message below:

Using "£" sign in a message posted using Firefox - The PHP/Firefox replaces it with "&#163 ;" and is therefore displayed afterwards by IE & Firefox as "&#163 ;". Note: remove space between 3 and ;

Using "£" sign in a message posted using IE - Displays fine in IE but Firefox displays it as "Ł"

Any ideas how I can fix this??

Thanks
Last edited by deejaysly on Sat Jul 07, 2007 9:49 pm, edited 2 times in total.
[size=100][b][url=http://www.vinylsurgerecords.co.uk][img]http://deejaysly.users.btopenworld.com/VSR_Logo_310x90_Original_Resize_bb.jpg[/img][/url][/b][/size]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Tried this?
viewtopic.php?t=1164
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
deejaysly
Posts: 12
Joined: Sat Jul 15, 2006 2:07 am

Post by deejaysly »

Klemen, didn't spot that! Many Thanks! I will try this later.......
[size=100][b][url=http://www.vinylsurgerecords.co.uk][img]http://deejaysly.users.btopenworld.com/VSR_Logo_310x90_Original_Resize_bb.jpg[/img][/url][/b][/size]
deejaysly
Posts: 12
Joined: Sat Jul 15, 2006 2:07 am

Post by deejaysly »

Klemen,

That fixed half the problem but I still have the case where......

Using "£" sign in a message posted using IE - Displays fine in IE but Firefox displays it as "Ł"

Any ideas??
[size=100][b][url=http://www.vinylsurgerecords.co.uk][img]http://deejaysly.users.btopenworld.com/VSR_Logo_310x90_Original_Resize_bb.jpg[/img][/url][/b][/size]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The only idea I have left is find this in mboard.php file (open with Notepad):

Code: Select all

<meta content="text/html; charset=windows-1250">
The above code is found TWICE in mboard.php, replace both instances!

and change it to

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
(note that 1250 becomes 1252) or to this:

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Refresh mboard page in your browser before testing and see if it displays correctly in NEW POSTS (not existing ones).
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
deejaysly
Posts: 12
Joined: Sat Jul 15, 2006 2:07 am

Post by deejaysly »

Klemen,

Both the 1252 and iso variants worked..... Thanks.

Which one do you think is best to be used?? (most compatible)
[size=100][b][url=http://www.vinylsurgerecords.co.uk][img]http://deejaysly.users.btopenworld.com/VSR_Logo_310x90_Original_Resize_bb.jpg[/img][/url][/b][/size]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You have 1252 throughout your website so I would go with that one. Some other people (who probably don't like Window$ very much :wink:) would recommend ISO.

I don't want to start a debate here so use whichever you prefer.
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
deejaysly
Posts: 12
Joined: Sat Jul 15, 2006 2:07 am

Post by deejaysly »

Klemen,

Understood. It makes sense aswell with 1252 also being "closer" to the original configuration of the message board code.

Thanks for your time and support. It is appreciated as always!

Regards.............
[size=100][b][url=http://www.vinylsurgerecords.co.uk][img]http://deejaysly.users.btopenworld.com/VSR_Logo_310x90_Original_Resize_bb.jpg[/img][/url][/b][/size]
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

iso-8859-1 is the older codepage.
Windows later added extra characters and called it windows-1252

Differences
ISO-8859-1 is a charset that is widely used for west-european languages. It contains chars 'a' t/m 'z', and numbers and some symbols. It also contains accented chars like: à á â è é ë. It does not contain the euro sign (€).
ISO-8859-15 is a change of the previous charset. Some less used symbols were replaced with more demanded symbols. It does contain the euro sign (€).
Windows-1252 is based on ISO-8859-1 and is extended with more symbols like the euro sign (€).

My recommendation is:
The charset you use depends on what softwareprogram you write your html-pages with. This is because if the program uses another charset as is defined in the charset tag than some symbols might not be displayed right.
Use windows-1252 if you use a windows program to write the html pages because this is the charset that is probably automatically used by the software.
If you use a linux/unix, use iso-8859-1 because this is most likely the default charset used by the software.

For non western languages you should use utf-8 or Shift_JIS.

Greetings,
Henrie
deejaysly
Posts: 12
Joined: Sat Jul 15, 2006 2:07 am

Post by deejaysly »

Henrie,

Thanks for all that info! I have learnt something new today! :D

It sounds even more like windows-1252 is the best option for my site.

Regards............
[size=100][b][url=http://www.vinylsurgerecords.co.uk][img]http://deejaysly.users.btopenworld.com/VSR_Logo_310x90_Original_Resize_bb.jpg[/img][/url][/b][/size]
Locked