Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8074433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:38:48+00:00 2026-06-05T14:38:48+00:00

I stored the symbols in a table in a database, e.g. country | currency_code

  • 0

I stored the symbols in a table in a database, e.g.

country | currency_code | currency_symbol | currency_rate
UK        GBP             £                 1.0000
EU        EUR             €                 1.XXXX
USA       USD             $                 1.XXXX
Canada    CAD             $                 1.XXXX

The problem is that the currency symbols are not valid in html so they show up as � instead.

Do I need to add another column to my table for HTML codes e.g. £ € $ or is there a simple function in PHP that I can use to wrap around the character to convert it to HTML?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:38:50+00:00Added an answer on June 5, 2026 at 2:38 pm

    Currency symbols are perfectly “HTML safe”. What you have is an encoding problem. You are outputting these characters encoded in one encoding (likely Latin-1), but your browser is interpreting them in some other encoding (likely UTF-8). The actual encoding and the declared encoding need to match. Follow Handling Unicode Front To Back In A Web App to see where your problem is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mysql database table to store country name and currency symbol -
I have the euro symbol stored in an MS-Access database table: SELECT CurrencySymbol, Len(CurrencySymbol)
I need to create a table in MySQL which stores the different currency symbols
In my database table I have the following fields: Table Supplier: id name vehicles
So I have a database with a table, where one of it's entries is
I have a database that has a table email_eml that stores 3 attributes name_eml,
In my stored procedure I'm using #temptable to fetch the data from one table
How to store symbol for Euro currency in MySQL Database ?
My MySQL database can store the euro symbol just fine (as I have tested
This stored procedure is supposed to : Take the userid and Date as input

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.