Forum Moderators: coopster

Message Too Old, No Replies

Problem with special characters

         

sren

6:41 am on Dec 26, 2005 (gmt 0)

10+ Year Member



I'm building a spanish site, and have a line like this:
<?php wp_list_pages('title_li=<h2>Paginas</h2>' );?>

But in spanish "Paginas" isn't right, it should be "P&aacute;ginas" instead, in order to read "Páginas".

Now, the "&aacute" seems to break the CSS styles, and the fonts from this line is beeing displayed bigger.

Do I have a way to display the special character inside that PHP line?

Thanks a lot.

Rincewind456

3:20 pm on Dec 26, 2005 (gmt 0)

10+ Year Member



You could always try using the character numeric code of &#225;

ergophobe

5:24 pm on Dec 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This looks like a WordPress function, no? I suspect that WP is parsing out entities or something and not allowing them because, from a normal PHP perspective, there's no reason your code shouldn't work.

legallyBlind

5:40 pm on Dec 26, 2005 (gmt 0)

10+ Year Member



Try using <h1 lang="es"> ..... </h1>

see [tlt.its.psu.edu...]