I have a database with a table for CD releases. One column is a text column called description where you can put in a long description along with a tracklist and so on. The problem is that when I display it there is no new lines (unless you use
) and Swedish charachters like ÅÄÖ will be displayed incorrectly. The biggest problem by far is that I have to use
to get a new line but it would be nice to fix the ÅÄÖ problem too since some bands have Swedish names and so on.
I just display it like this (simplified):
$ID = $_REQUEST['catnum'];
$query = "SELECT catnum, band, title, format, releasedate, description, cover FROM releases WHERE catnum='$ID'";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result);
echo $row['description'];
Thsis what it looks like: http://cmenbazinga.se/unexploded/release.php?catnum=UER001
Your
metatag states that the text is in UTF-8, but it’s actually Latin-1. Transcode your text from Latin-1 to UTF-8.