From 014e6ec91828d7a9bf5f3aa19c2df805ee08b764 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Mon, 17 Jul 2017 20:23:32 +0200 Subject: [PATCH] UTF8 encoding fix --- includes/rss.php | 4 ++-- wp-liveticker2.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/rss.php b/includes/rss.php index dbc18af..ca77be1 100644 --- a/includes/rss.php +++ b/includes/rss.php @@ -52,10 +52,10 @@ function wplt_print_feed( $arguments ) { // build entries foreach ( $entries as $entry ) { //print_r($entry); - $rss .= ''.mb_convert_encoding($entry->post_title, "ISO-8859-1", "UTF-8") .''; + $rss .= ''.$entry->post_title.''; $rss .= 'http://www.dpsg-hardenberg.org/lagerticker'; $rss .= ''.$entry->post_date_rfc.' '.date('O').''; - $rss .= 'post_content, "ISO-8859-1", "UTF-8")).']]>'; + $rss .= 'post_content.']]>'; } // generate document foot diff --git a/wp-liveticker2.php b/wp-liveticker2.php index c0f64ed..3252014 100644 --- a/wp-liveticker2.php +++ b/wp-liveticker2.php @@ -2,7 +2,7 @@ /** * Plugin Name: WP Liveticker 2 * Description: A simple Liveticker for Wordpress. - * Version: 0.4 beta + * Version: 0.4.1 beta * Author: Stefan Kalscheuer * Author URI: http://www.stklblog.de * Text Domain: wplt2