PDA

View Full Version : Characters problem when including an external PHP code


Triky
05-20-2010, 12:47 PM
I have this plugin:

ob_start();
include('includes/klayz_latestposts.php');
$latest_post_klayz = ob_get_contents();
ob_end_clean();

klayz_latestposts.php:

<?php
require('../wp-blog-header.php');
?>

<?php query_posts('showposts=10'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Link per <?php the_title(); ?>"><?php the_title(); ?></a><br />
<?php endwhile;?>

But.. activating the plugin I get these characters errors:

http://i49.tinypic.com/2wh01h0.jpg

Why?
Can you please help me?

vbenhancer
05-20-2010, 01:34 PM
change the_title() for utf8_decode(the_title()) ... Wordpress is encoding the content into UTF-8 format, which vBulletin is allergic to...

Triky
05-20-2010, 04:21 PM
Tried but I get the same error..

Triky
05-28-2010, 09:51 PM
No one can help me here?