On my site I have a script that pulls the entries of an RSS feed and displays them (this is a portion):
Code: [Select]
It works like a charm, the only oddity I noticed is when I deal with "special" chars. They're displayed just fine in the page, but the title="" tooltip replaces them with □□□□ (not encoded properly):

The problem is that the code that outputs text and title="" is the same. And the page is UTF-8. AND (last oddity :P) browsing the source code I can see the chars properly!

Any clue?
I'm writing this just for curiosity.. I don't care much about this "glitch"! :D
<li>
<a href="<?php echo $item->get_permalink(); ?>" title="<?php echo esc_html( $item->get_title() ); ?>" rel="external"><?php echo esc_html( $item->get_title() ); ?></a>
</li>It works like a charm, the only oddity I noticed is when I deal with "special" chars. They're displayed just fine in the page, but the title="" tooltip replaces them with □□□□ (not encoded properly):

The problem is that the code that outputs text and title="" is the same. And the page is UTF-8. AND (last oddity :P) browsing the source code I can see the chars properly!

Any clue?
I'm writing this just for curiosity.. I don't care much about this "glitch"! :D





