UTF8 encoding fix
This commit is contained in:
parent
79ded75db4
commit
014e6ec918
@ -52,10 +52,10 @@ function wplt_print_feed( $arguments ) {
|
|||||||
// build entries
|
// build entries
|
||||||
foreach ( $entries as $entry ) {
|
foreach ( $entries as $entry ) {
|
||||||
//print_r($entry);
|
//print_r($entry);
|
||||||
$rss .= '<item><title>'.mb_convert_encoding($entry->post_title, "ISO-8859-1", "UTF-8") .'</title>';
|
$rss .= '<item><title>'.$entry->post_title.'</title>';
|
||||||
$rss .= '<link>http://www.dpsg-hardenberg.org/lagerticker</link>';
|
$rss .= '<link>http://www.dpsg-hardenberg.org/lagerticker</link>';
|
||||||
$rss .= '<pubDate>'.$entry->post_date_rfc.' '.date('O').'</pubDate>';
|
$rss .= '<pubDate>'.$entry->post_date_rfc.' '.date('O').'</pubDate>';
|
||||||
$rss .= '<description><![CDATA['.utf8_encode(mb_convert_encoding($entry->post_content, "ISO-8859-1", "UTF-8")).']]></description></item>';
|
$rss .= '<description><![CDATA['.$entry->post_content.']]></description></item>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// generate document foot
|
// generate document foot
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Plugin Name: WP Liveticker 2
|
* Plugin Name: WP Liveticker 2
|
||||||
* Description: A simple Liveticker for Wordpress.
|
* Description: A simple Liveticker for Wordpress.
|
||||||
* Version: 0.4 beta
|
* Version: 0.4.1 beta
|
||||||
* Author: Stefan Kalscheuer
|
* Author: Stefan Kalscheuer
|
||||||
* Author URI: http://www.stklblog.de
|
* Author URI: http://www.stklblog.de
|
||||||
* Text Domain: wplt2
|
* Text Domain: wplt2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user