How Can a Reduction ofã¢â‚¬â€¹ in-transit Inventory Beã¢â‚¬â€¹ Encouraged?
this is stored in my mysql database
<p>it’s the best</p>
I am fetching this from database and displaying to webpage. But "it'due south the all-time" is displayed as "it’s the best".
How can i show apostrophe on the webpage?
I want anybody who access my website come across the apostrophe irrespective of browser and bone.
asked Oct 12, 2022 at ten:57
karankaran
170 1 gold badge two silver badges 9 bronze badges
3
one Answer 1
when so always you find such special character problems from the database. Always follow some basic steps like below:
- check the column collation to be utf8_general_ci.
- run the query
"SET NAMES utf8"
before your bodily query. - ready the content headers to utf-8 or endeavour with ISO-8859-1
if yet it doesn't help, then please paste/describe your lawmaking while asking the questions.
answered Oct 12, 2022 at 11:07
Ashish ChoudharyAshish Choudhary
1,956 1 gold badge 17 silver badges 25 statuary badges
Not the reply you're looking for? Scan other questions tagged php html unicode or ask your ain question.
Source: https://stackoverflow.com/questions/33079409/convert-%C3%A2%E2%82%AC-to-apostrophe-in-php-and-display-to-webpage
share your codes too..
October 12, 2022 at 10:58
which exotic encoding are you using?
October 12, 2022 at 11:01
’
is the HTML code for’
. You already have corrupted data in your database. You can try to repair by decoding all HTML entities to their 'ISO-8859-ane'-encoded characters. The resulting string will likely be a valid UTF-8 string.Oct 12, 2022 at 22:xiv