Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/01/2011, 13:44
Avatar de naitmeir
naitmeir
 
Fecha de Ingreso: junio-2008
Ubicación: Barcelona
Mensajes: 227
Antigüedad: 15 años, 10 meses
Puntos: 0
Pregunta htmlentities y html_entity_decode en utf-8

Buenas,

En mi html tengo

Código HTML:
Ver original
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Mi BD esta en UTF-8 general ci, y necesito trabajar con html en mi base de datos con php.

Investigando, encontre que:

Transforma HTML a UTF-8

Código PHP:
htmlentities($this->postENT_QUOTES"UTF-8"); 
Transforma UTF-8 a HTML

Código PHP:
utf8_encode(html_entity_decode($value->post)); 

Pero no hace bien la transformación y sigo con el problema...

S2