Results 1 to 3 of 3

Thread: Currency symbols don't display in database results

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    150

    Resolved Currency symbols don't display in database results

    Hello,

    I have data in a MySQL database with currency symbols used. But when I display the results on a web page, only the '$' symbol displays with the amount correctly. I get results like the ones below.

    USD: $100
    EURO: ?100
    Pounds: ?100
    It goes on like that. Does anyone know how to fix this kind of issue please?

    I will appreciate your help.
    Last edited by menre; Jun 27th, 2012 at 06:26 PM.

  2. #2
    Addicted Member
    Join Date
    Feb 2010
    Location
    Damascus - Syria
    Posts
    145

    Re: Currency symbols don't display in database results

    As I think: the dollar sign is one of the ASCII characters, you may find it on the keyboard, while the other symbols need special way to be viewed on the webpage so they need a special way to be stored in the database. Read about HTML entities.

    http://www.w3schools.com/html/html_entities.asp

    regards ,

    Feras Jobeir
    Last edited by fjober; Jun 27th, 2012 at 03:42 PM.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    150

    Re: Currency symbols don't display in database results

    Yes, that has actually solved the problems. Entering code like
    £
    €
    ¥
    and so on to represent the data in the database is the trick to get those currency symbols.

    Thank you very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width