|
-
Jun 27th, 2012, 11:18 AM
#1
Thread Starter
Addicted Member
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.
-
Jun 27th, 2012, 03:37 PM
#2
Addicted Member
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.
-
Jun 27th, 2012, 06:25 PM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|