I had a working code and moved it to a new server, from php5 to php7. Googling for a week did not help me, so i'm asking you guys.
I have some info with a euro-sign in a sql database: €99.00 The info is stored as utf16-general-ci.
If the info is selected and put in a string, i echo it with:
echo $row["Total"]
;
On the old server it showed: €99.00
On the new server it shows: €99.00
I want to show the euro-sign instead of the character code.
I tried changing to utf-8, but this does nothing. Also htmlentities()
or htmlspecialchars()
does not do anything.