pound sign £ showing as sqaure []
pound sign £ showing as sqaure []
(OP)
is there a reason when I alert a messgage the pound sign is showing as a square?
cheers,
1DMF
cheers,
1DMF
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
RE: pound sign £ showing as sqaure []
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
RE: pound sign £ showing as sqaure []
Windows XP - IE7 / FF 3 / Chrome 2.0
and got the character to show up properly on all three
CODE
function showPound() {
alert("£");
}
</script>
<a href="javascript:showPound()">Show Pound</a>
--------
GOOGLE is a great resource to find answers to questions like "how do i..."
If you don't know exaclty what you want to do or what to search on, try Google Suggest: http://www.google.com/webhp?complete=1&hl=en
--------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
RE: pound sign £ showing as sqaure []
Must be a font problem, as Phil wrote. On my Linux also appears correctly. ( FireFox, SeaMonkey, Epiphany, Galeon, Opera, Midori, Arora, Konqueror. )
Feherke.
http://rootshell.be/~feherke/
RE: pound sign £ showing as sqaure []
How do I change the font of an alert box is it relative to CSS fonts?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
RE: pound sign £ showing as sqaure []
I just tried your code on IE8 running on Windows XP SP3 and it worked fine for me.
Regards,
Martin
Computing Design And Services:
http://www.webrevolt.biz
RE: pound sign £ showing as sqaure []
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
RE: pound sign £ showing as sqaure []
I changed the CSS font family to
CODE
It made no difference I'm still getting a square?
And every PC has Arial, so it can't be a font thing can it?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
RE: pound sign £ showing as sqaure []
alert("This is sterling pound symbol: \u00a3");
Otherwise, from the purely client-side perspective, the problem is the misalignment of [1] the encoding of source, [2] the guess of the browser about the encoding of the served text stream. Use of meta tag with charset specified may take away part of the uncertainty. But it still need to align with what the encoding the page is actually saved on the server. Without charset suggestion, it all depends on the caprice of browser's guessing routine. FF seems have better success.
RE: pound sign £ showing as sqaure []
CODE
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
so it can't be that either can it?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
RE: pound sign £ showing as sqaure []
CODE
nice one tsuj!
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"