I am a little embarrassed to ask, but could someone please school me on matching currency symbols?

I have a select that uses the HTML code £ which the browser auto converts to the British Pound symbol and when the data is posted, it send the symbol across the wire and not the HTML code.

I am using the code & # 163 ; ... which is also in the code below, but the forum is converting it.

<option value="£"<?php if($config->webCurrency['flag'] == '£') echo ' selected'; ?>>£<?php echo $spaces; ?></option>

When getting the value from the database, the symbol is returned and I cannot seem to get a match. Using htmlentities on the symbol returned gives a crap value due to the ampersand.

Character set is UTF-8

TIA!

    Instead of getting all this headache, Why don't you use a numeric code (may be the UTF8 numeric index) and only when you need to show the symbol convert it to a character.

      Write a Reply...