This question already has an answer here:
- UTF-8 all the way through 14 answers
How can I echo a sql text field into a paragraph?
My code does puts the text in but changes the accents like á
to this -> �
.
I tried adding UTF-8 in the header and removing it.
Removing UTF-A makes the sql content is ok but all the content outside the paragraph messes up.
I checked the DB was using (UTF-8-unicode), The files were saved with UTF-8
Any ideas on what might be wrong?
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<textarea class="texto" name="textoarticulo" id="textoarticulo" form="formarticulo" placeholder="Texto del artículo...">
<?
echo $row['txt4'];
?>
</textarea>
</div>