Page 1 of 1
£ replaced with £ when message posted using Firefox
Posted: Mon Mar 26, 2007 10:21 pm
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 "£ ;" and is therefore displayed afterwards by IE & Firefox as "£ ;". 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
Posted: Tue Mar 27, 2007 9:32 am
by Klemen
Posted: Tue Mar 27, 2007 1:32 pm
by deejaysly
Klemen, didn't spot that! Many Thanks! I will try this later.......
Posted: Tue Mar 27, 2007 9:36 pm
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??
Posted: Wed Mar 28, 2007 1:48 pm
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).
Posted: Thu Mar 29, 2007 6:03 pm
by deejaysly
Klemen,
Both the 1252 and iso variants worked..... Thanks.
Which one do you think is best to be used?? (most compatible)
Posted: Thu Mar 29, 2007 9:39 pm
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

) would recommend ISO.
I don't want to start a debate here so use whichever you prefer.
Posted: Thu Mar 29, 2007 10:23 pm
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.............
Posted: Fri Mar 30, 2007 6:03 am
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
Posted: Sat Mar 31, 2007 11:22 am
by deejaysly
Henrie,
Thanks for all that info! I have learnt something new today!
It sounds even more like windows-1252 is the best option for my site.
Regards............