...

View Full Version : not showing correctly.



optimizer123
11-04-2012, 05:25 PM
My € shows as: ‚
same as shows as: i�

How do i fix this..?

Click on a seat here to test:

http://www.bioscoop-filmpje.allalla.com/reserveer_groot.html

Philip M
11-04-2012, 05:57 PM
ALT 0128 is Euro symbol in HTML.

<script type = "text/javascript">
alert('\u20AC'); // Euro symbol
</script>


"There is hardly anything in the world that some man cannot make a little worse and sell a little cheaper, and the people who consider price only are this man's lawful prey." John Ruskin

optimizer123
11-04-2012, 06:02 PM
I got this:


document.getElementById('seatcounter').innerHTML = "€ " + total;

yesterday it showed fine, but not now (as u can see on the website)

felgall
11-04-2012, 06:32 PM
You must use the unicode value if you want that character to always appear correctly as Philip already told you.


document.getElementById('seatcounter').innerHTML = "\u20AC " + total;

optimizer123
11-04-2012, 06:37 PM
Awesome thanks! :)

on to the next question



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum