Foros del Web » Programando para Internet » PHP »

Tildes en el texto.

Estas en el tema de Tildes en el texto. en el foro de PHP en Foros del Web. Hola a tod@s, Bueno tengo el siguiente código: Código PHP: <?php  require_once(  '../../../wp-load.php'  ); header ( "Content-type: text/xml" ); echo  '<?xml version="1.0" encoding="UTF-8" ?> <Piecemaker> <Settings> <imageWidth>900</imageWidth> <imageHeight>300</imageHeight>' ; ...
  #1 (permalink)  
Antiguo 01/04/2012, 06:00
Avatar de maelse  
Fecha de Ingreso: octubre-2005
Mensajes: 85
Antigüedad: 18 años, 6 meses
Puntos: 0
Tildes en el texto.

Hola a tod@s,

Bueno tengo el siguiente código:
Código PHP:
<?php require_once( '../../../wp-load.php' );
header("Content-type: text/xml");
echo 
'<?xml version="1.0" encoding="UTF-8" ?>
<Piecemaker>
<Settings>
<imageWidth>900</imageWidth>
<imageHeight>300</imageHeight>'
;
echo 
'<segments>6</segments>';
echo 
'<tweenTime>2</tweenTime>';
echo 
'<tweenDelay>0.1</tweenDelay>';
echo 
'<tweenType>easeInOutBack</tweenType>';
echo 
'<zDistance>200</zDistance>';
echo 
'<expand>3</expand>';
echo 
'<innerColor>0x292D34</innerColor>';
echo 
'<textBackground>0x292D34</textBackground>';
echo 
'<textDistance>5</textDistance>';
echo 
'<shadowDarkness>100</shadowDarkness>';
echo 
'<autoplay>3</autoplay>'
echo 
'
</Settings>'
;
?>
<?php 
    $gldcat 
get_option('woma_gldcat'); 
    
$gldct =  get_option('woma_gldct');
    
$my_query = new WP_Query('category_name='.$gldcat.'&showposts='.$gldct.'');
    while (
$my_query->have_posts()) : $my_query->the_post();$do_not_duplicate $post->ID;
?>
<?php $preview 
get_post_meta($post->ID'slider_value'$single true)  ?>
<Image Filename="<?php echo $preview?>">
  <Text>
    <headline><?php the_title(); ?></headline>
    <break>.</break>
    <paragraph><?php the_content_rss(''TRUE''40); ?></paragraph>
    <break>.</break>
    <inline> <a href="<?php the_permalink() ?>"> Leer más </a></inline>
  </Text>
</Image>
<?php endwhile; ?>
<?php wp_reset_query
(); ?>
<?php 
echo '</Piecemaker>'?>
El tema es el siguiente, este código añade un trozo de texto de una entrada de wordpress y debajo de ese texto el enlace "Leer más" que podeis ver en el mismo código, pero el problema es que las letras que llevan tilde no aparecen.

Un poco de ayuda por favor, gracias y saludos.
__________________
DOWEEM

CC.OO Pull&bear
  #2 (permalink)  
Antiguo 02/04/2012, 01:21
 
Fecha de Ingreso: septiembre-2008
Ubicación: Manises,Valencia
Mensajes: 114
Antigüedad: 15 años, 6 meses
Puntos: 13
Respuesta: Tildes en el texto.

Hola, no conozco wordpress pero, has probado a escribir las letras con acento como se escribian antes en html?
á &atilde;
é &etilde;
etc
  #3 (permalink)  
Antiguo 02/04/2012, 04:17
Avatar de maelse  
Fecha de Ingreso: octubre-2005
Mensajes: 85
Antigüedad: 18 años, 6 meses
Puntos: 0
Respuesta: Tildes en el texto.

Sí ya probe y no funciona
__________________
DOWEEM

CC.OO Pull&bear
  #4 (permalink)  
Antiguo 02/04/2012, 05:46
Avatar de ayukkonen  
Fecha de Ingreso: octubre-2010
Ubicación: Sevilla
Mensajes: 355
Antigüedad: 13 años, 6 meses
Puntos: 48
Respuesta: Tildes en el texto.

¿Está el fichero en formato UTF-8?
__________________
Facebook | Twitter

Etiquetas: tildes
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:10.