Re: [PHP-ES] Problema con Tildes

[email protected] (Ricardo Martinez)
Newsgroups php.general.es
Message-ID <CAJ_2TV-4QHOxu1vvCmfuG+=ZYy9_SxxvL+jngF3acq7AxOWhAQ@mail.gmail.com>
hola!

para no tener que estar modificando todo el código, comprueba si al crear la
conexión te sirve esto:


*mysql_set_charset('utf8', $link);* // donde $link es una conexión a base de
datos.

Un saludo!!!



2011/7/5 Josué Hernández <[email protected]>

> Gracias Pablo,
>
> Al final resolví el problema usando htmlentities().
>
> Quedó así:
> print '<option value="'.$row[0].'" selected />'.htmlentities( $row[1] );
>
> Pero te agradezco tu ayuda, no conocía esa opción.
> Gracias de nuevo, Josué.
>
>
> On 07/05/2011 12:18 PM, Pablo Prieto Sebastia wrote:
>
> dón, copie y pegué de donde no debía:
>
> <?php
> define('CHARSET','UTF-8');
> header('Content-type: text/html; charset='.CHARSET);
> ?>
>
>
> ______________________________**__
> -Universidad Central "Marta Abreu" de Las Villas. http://www.uclv.edu.cu
> -Participe en Universidad 2012, del 13 al 17 de febrero de 2012.
> Habana.Cuba. http://www.**congresouniversidad.cu<http://www.congresouniversidad.cu>
> -Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu/
>
>
>


-- 
Ricardo
_______________________________________________
IT Architect
website: http://www.pulsarinara.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.