• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

echo symbols in sql

Hi all,
I have a database full of strings that look like this:
company name ®  some text

When I echo the string all registered trademark symbols turn into question marks.
Apart from converting the symbols into "©", does anyone have any ideas how to remedy this?
1 Solution
Loganathan NatarajanLAMP DeveloperCommented:
How it looks in db table text filed? Is it like question marks way stored or it is right way?
If so, you set some encoding type and display?
if there are turning into question marks the data probably isn't being stored as UTF8
what is your database? (and version?)
Neil_BradleyWeb UX/UI DeveloperAuthor Commented:
To answer both questions.
Yes, the symbols are showing up fine in the database (they look like this ® ).

Database info:
•Software: MySQL
•Software version: 5.0.96-community - MySQL Community Edition (GPL)
•Protocol version: 10
• Server charset:  UTF-8 Unicode (utf8)
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Loganathan NatarajanLAMP DeveloperCommented:
did you set content type like below,

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Jagadishwor DulalBraces MediaCommented:
Did you try using

Open in new window

Neil_BradleyWeb UX/UI DeveloperAuthor Commented:
That worked perfectly! Thank you.

I  checked and this "<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" was in place.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now